From 5a5fd01ebe20ec7a500278619af00f288b6310ed Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Thu, 9 Apr 2020 17:23:22 +0300 Subject: [PATCH] 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. --- testing/test_faulthandler.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/testing/test_faulthandler.py b/testing/test_faulthandler.py index f323edeb4..46adccd21 100644 --- a/testing/test_faulthandler.py +++ b/testing/test_faulthandler.py @@ -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. """