summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-10-11 00:38:04 (GMT)
committerGitHub <noreply@github.com>2023-10-11 00:38:04 (GMT)
commit7ca4aafa0ea94a4bb778b34e9c2e85b07f550c11 (patch)
treea88cc47edb7a2344e8d23e15961d9f72d87cc68b
parente07c37cd5212c9d13749b4d02a1d68e1efcba6cf (diff)
downloadcpython-7ca4aafa0ea94a4bb778b34e9c2e85b07f550c11.zip
cpython-7ca4aafa0ea94a4bb778b34e9c2e85b07f550c11.tar.gz
cpython-7ca4aafa0ea94a4bb778b34e9c2e85b07f550c11.tar.bz2
gh-108277: test_os tolerates 1 ms diff for timerfd (#110661)
-rw-r--r--Lib/test/test_os.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 1a348bc..398393b 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -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):