Merge pull request #7057 from bluetech/skip-faulthandler-test_timeout

Skip flaky test test_faulthandler.py::test_timeout[True]
This commit is contained in:
Ran Benita 2020-04-10 11:51:31 +03:00 committed by GitHub
commit 41d1ecf521
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.
"""