Skip to content

Commit 7da3e3a

Browse files
committed
Increase test_faulthandler.py::test_timeout sleep duration on CI
This might help fix some flakiness.
1 parent cb06bc7 commit 7da3e3a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: testing/test_faulthandler.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def test_timeout(testdir, enabled):
5858
"""
5959
import os, time
6060
def test_timeout():
61-
time.sleep(1 if "CI" in os.environ else 0.1)
61+
time.sleep(10 if "CI" in os.environ else 0.1)
6262
"""
6363
)
6464
testdir.makeini(
@@ -71,8 +71,6 @@ def test_timeout():
7171

7272
result = testdir.runpytest_subprocess(*args)
7373
tb_output = "most recent call first"
74-
if sys.version_info[:2] == (3, 3):
75-
tb_output = "Thread"
7674
if enabled:
7775
result.stderr.fnmatch_lines(["*%s*" % tb_output])
7876
else:

0 commit comments

Comments
 (0)