Skip to content

Commit

Permalink
Document timeout_func_only
Browse files Browse the repository at this point in the history
  • Loading branch information
flub committed Oct 11, 2021
1 parent e287aeb commit 9489ad8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,18 @@ been executed, which could result in a broken test-suite anyway. In
case of doubt the thread method which terminates the entire process
might result in clearer output.

Avoiding timeouts in Fixtures
=============================

The timeout applies to the entire test including any fixtures which
may need to be setup or torn down for the test (the exact affected
fixtures depends on which scope they are and whether other tests will
still use the same fixture). If the timeouts really are too short to
include fixture durations, firstly make the timeouts larger ;). If
this really isn't an option a `timeout_func_only` boolean setting

This comment has been minimized.

Copy link
@asottile

asottile Oct 12, 2021

Member

this breaks the linting -- this file is rst so it should have double-backticks

exists which can be set in the pytest ini configuration file, as
documented in `pytest --help`.

This comment has been minimized.

Copy link
@asottile

asottile Oct 12, 2021

Member

here too :)



Debugger Detection
==================
Expand Down

0 comments on commit 9489ad8

Please sign in to comment.