From de41d15adda25bf4394e0d7abf375ba908bd4c41 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 20 Feb 2020 03:05:48 +0100 Subject: [PATCH] tests: fix flaky test_timeout Use a longer timeout on CI - seen a failure with it with GHA (Windows). Ref: a4554e666a --- testing/test_faulthandler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/test_faulthandler.py b/testing/test_faulthandler.py index 49ade6e5d62..7580f6f2fc1 100644 --- a/testing/test_faulthandler.py +++ b/testing/test_faulthandler.py @@ -56,9 +56,9 @@ def test_timeout(testdir, enabled): """ testdir.makepyfile( """ - import time + import os, time def test_timeout(): - time.sleep(0.1) + time.sleep(1 if "CI" in os.environ else 0.1) """ ) testdir.makeini(