]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-108277: test_os tolerates 1 ms diff for timerfd (#110661)
authorVictor Stinner <vstinner@python.org>
Wed, 11 Oct 2023 00:38:04 +0000 (02:38 +0200)
committerGitHub <noreply@github.com>
Wed, 11 Oct 2023 00:38:04 +0000 (00:38 +0000)
Lib/test/test_os.py

index 1a348bc70bc7cf1de69dd00f19646a34e679f8fc..398393b2333a8533217758afd6023ca68454263c 100644 (file)
@@ -3929,8 +3929,8 @@ class EventfdTests(unittest.TestCase):
 @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):