tests: speed up test_faulthandler.test_timeout

This commit is contained in:
Daniel Hahler 2019-10-27 02:43:49 +01:00
parent ec27363748
commit a4554e666a
1 changed files with 2 additions and 2 deletions

View File

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