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.
1 parent d68013a commit e7a77f6Copy full SHA for e7a77f6
test_pytest_timeout.py
@@ -355,7 +355,30 @@ def test_ini_timeout_func_only(testdir):
355
@pytest.fixture
356
def slow():
357
time.sleep(2)
358
+ def test_foo(slow):
359
+ pass
360
+ """
361
+ )
362
+ testdir.makeini(
363
364
+ [pytest]
365
+ timeout = 1
366
+ timeout_func_only = true
367
368
369
+ result = testdir.runpytest()
370
+ assert result.ret == 0
371
+
372
373
+def test_ini_timeout_func_only_marker_override(testdir):
374
+ testdir.makepyfile(
375
376
+ import time, pytest
377
378
+ @pytest.fixture
379
+ def slow():
380
+ time.sleep(2)
381
+ @pytest.mark.timeout(1.5)
382
def test_foo(slow):
383
pass
384
"""
0 commit comments