From 7ca4aafa0ea94a4bb778b34e9c2e85b07f550c11 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 11 Oct 2023 02:38:04 +0200 Subject: [PATCH] gh-108277: test_os tolerates 1 ms diff for timerfd (#110661) --- Lib/test/test_os.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 1a348bc70bc7cf..398393b2333a85 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -3929,8 +3929,8 @@ def test_eventfd_select(self): @unittest.skipUnless(hasattr(os, 'timerfd_create'), 'requires os.timerfd_create') @support.requires_linux_version(2, 6, 30) class TimerfdTests(unittest.TestCase): - # Tolerate a difference of 50 us - CLOCK_RES_NS = 50_000 + # Tolerate a difference of 1 ms + CLOCK_RES_NS = 1_000_000 CLOCK_RES = CLOCK_RES_NS * 1e-9 def timerfd_create(self, *args, **kwargs):