Skip to content

Commit 81a9df6

Browse files
authored
tests: fix flaky test_timeout (#6773)
Use a longer timeout on CI - seen a failure with it with GHA (Windows). Ref: a4554e6
1 parent 58ef95e commit 81a9df6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testing/test_faulthandler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ def test_timeout(testdir, enabled):
5656
"""
5757
testdir.makepyfile(
5858
"""
59-
import time
59+
import os, time
6060
def test_timeout():
61-
time.sleep(0.1)
61+
time.sleep(1 if "CI" in os.environ else 0.1)
6262
"""
6363
)
6464
testdir.makeini(

0 commit comments

Comments
 (0)