Skip flaky test test_faulthandler.py::test_timeout[True]

It occasionally crashes on CI, the reason seems out of our control, or
at least we can't figure it out.
This commit is contained in:
Ran Benita 2020-04-09 17:23:22 +03:00
parent 413ca8a4d0
commit 5a5fd01ebe
1 changed files with 10 additions and 2 deletions

View File

@ -49,8 +49,16 @@ def test_disabled(testdir):
assert result.ret == 0
@pytest.mark.parametrize("enabled", [True, False])
def test_timeout(testdir, enabled):
@pytest.mark.parametrize(
"enabled",
[
pytest.param(
True, marks=pytest.mark.skip(reason="sometimes crashes on CI (#7022)")
),
False,
],
)
def test_timeout(testdir, enabled: bool) -> None:
"""Test option to dump tracebacks after a certain timeout.
If faulthandler is disabled, no traceback will be dumped.
"""