From 7da3e3aaad89dabd790f2cccf31c1a3f2fbfa01f Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Sun, 5 Apr 2020 18:22:01 +0300 Subject: [PATCH] Increase test_faulthandler.py::test_timeout sleep duration on CI This might help fix some flakiness. --- testing/test_faulthandler.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/testing/test_faulthandler.py b/testing/test_faulthandler.py index 7580f6f2f..f4c190ac4 100644 --- a/testing/test_faulthandler.py +++ b/testing/test_faulthandler.py @@ -58,7 +58,7 @@ def test_timeout(testdir, enabled): """ import os, time def test_timeout(): - time.sleep(1 if "CI" in os.environ else 0.1) + time.sleep(10 if "CI" in os.environ else 0.1) """ ) testdir.makeini( @@ -71,8 +71,6 @@ def test_timeout(testdir, enabled): result = testdir.runpytest_subprocess(*args) tb_output = "most recent call first" - if sys.version_info[:2] == (3, 3): - tb_output = "Thread" if enabled: result.stderr.fnmatch_lines(["*%s*" % tb_output]) else: