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.
2 parents a6fb4c8 + 4071c8a commit b895816Copy full SHA for b895816
testing/test_pytester.py
@@ -412,13 +412,15 @@ def test_testdir_run_no_timeout(testdir):
412
def test_testdir_run_with_timeout(testdir):
413
testfile = testdir.makepyfile("def test_no_timeout(): pass")
414
415
+ timeout = 120
416
+
417
start = time.time()
- result = testdir.runpytest_subprocess(testfile, timeout=120)
418
+ result = testdir.runpytest_subprocess(testfile, timeout=timeout)
419
end = time.time()
420
duration = end - start
421
422
assert result.ret == EXIT_OK
- assert duration < 5
423
+ assert duration < timeout
424
425
426
def test_testdir_run_timeout_expires(testdir):
0 commit comments