tests: speed up test_faulthandler.test_timeout (#6075)

This commit is contained in:
Daniel Hahler 2019-11-06 22:07:28 +01:00 committed by GitHub
commit 5be3a9b5ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -58,13 +58,13 @@ def test_timeout(testdir, enabled):
"""
import time
def test_timeout():
time.sleep(2.0)
time.sleep(0.1)
"""
)
testdir.makeini(
"""
[pytest]
faulthandler_timeout = 1
faulthandler_timeout = 0.01
"""
)
args = ["-p", "no:faulthandler"] if not enabled else []