Skip to content

Commit d095420

Browse files
committed
TST increase faulthandler timeout value in test on CI
1 parent bf92deb commit d095420

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

testing/test_faulthandler.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,7 @@ def test_disabled():
7272

7373

7474
@pytest.mark.keep_ci_var
75-
@pytest.mark.parametrize(
76-
"enabled",
77-
[
78-
pytest.param(
79-
True, marks=pytest.mark.skip(reason="sometimes crashes on CI (#7022)")
80-
),
81-
False,
82-
],
83-
)
75+
@pytest.mark.parametrize("enabled", [True, False])
8476
def test_timeout(pytester: Pytester, enabled: bool) -> None:
8577
"""Test option to dump tracebacks after a certain timeout.
8678
@@ -90,7 +82,7 @@ def test_timeout(pytester: Pytester, enabled: bool) -> None:
9082
"""
9183
import os, time
9284
def test_timeout():
93-
time.sleep(1 if "CI" in os.environ else 0.1)
85+
time.sleep(5 if "CI" in os.environ else 0.1)
9486
"""
9587
)
9688
pytester.makeini(

0 commit comments

Comments
 (0)