Skip to content

Commit 9489ad8

Browse files
committed
Document timeout_func_only
1 parent e287aeb commit 9489ad8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,18 @@ been executed, which could result in a broken test-suite anyway. In
210210
case of doubt the thread method which terminates the entire process
211211
might result in clearer output.
212212

213+
Avoiding timeouts in Fixtures
214+
=============================
215+
216+
The timeout applies to the entire test including any fixtures which
217+
may need to be setup or torn down for the test (the exact affected
218+
fixtures depends on which scope they are and whether other tests will
219+
still use the same fixture). If the timeouts really are too short to
220+
include fixture durations, firstly make the timeouts larger ;). If
221+
this really isn't an option a `timeout_func_only` boolean setting
222+
exists which can be set in the pytest ini configuration file, as
223+
documented in `pytest --help`.
224+
213225

214226
Debugger Detection
215227
==================

0 commit comments

Comments
 (0)