We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
timeout_func_only = true
pytest.mark
1 parent d91e6d8 commit 4f07f15Copy full SHA for 4f07f15
README.rst
@@ -227,6 +227,17 @@ this really isn't an option a ``timeout_func_only`` boolean setting
227
exists which can be set in the pytest ini configuration file, as
228
documented in ``pytest --help``.
229
230
+For the decorated function, a decorator will override
231
+``timeout_func_only = true`` in the pytest ini file to the default
232
+value. If you need to keep this option for a decorated test, you
233
+must specify the option explicitly again:
234
+
235
+.. code:: python
236
237
+ @pytest.mark.timeout(60, func_only=True)
238
+ def test_foo():
239
+ pass
240
241
242
Debugger Detection
243
==================
0 commit comments