From 81a9df6ed1ceda1a019323d10ff0bad2e9a2239c Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Fri, 21 Feb 2020 12:52:31 +0100 Subject: [PATCH] tests: fix flaky test_timeout (#6773) 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 49ade6e5d..7580f6f2f 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(