diff --git a/testing/test_faulthandler.py b/testing/test_faulthandler.py index 49ade6e5d..7580f6f2f 100644 --- a/testing/test_faulthandler.py +++ b/testing/test_faulthandler.py @@ -56,9 +56,9 @@ def test_timeout(testdir, enabled): """ testdir.makepyfile( """ - import time + import os, time def test_timeout(): - time.sleep(0.1) + time.sleep(1 if "CI" in os.environ else 0.1) """ ) testdir.makeini(