Skip to content

Commit

Permalink
fixup! Add a new current_thread_only to all markers
Browse files Browse the repository at this point in the history
  • Loading branch information
godlygeek committed Apr 17, 2024
1 parent 07b864f commit 3631eed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ that can be used to enforce additional checks and validations on tests.
pass # do some stuff that allocates memory
.. py:function:: pytest.mark.limit_leaks(location_limit: str, filter_fn: LeaksFilterFunction | None = None)
.. py:function:: pytest.mark.limit_leaks(location_limit: str, filter_fn: LeaksFilterFunction | None = None, current_thread_only: bool = False)
Fail the execution of the test if any call stack in the test leaks more memory than
allowed.
Expand Down

0 comments on commit 3631eed

Please sign in to comment.