https://github.com/python/cpython/commit/55a34a1d167f1379d8f3f30c322db93a548bb383
commit: 55a34a1d167f1379d8f3f30c322db93a548bb383
branch: 3.13
author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com>
committer: vstinner <vstin...@python.org>
date: 2025-06-19T10:04:48Z
summary:

[3.13] gh-126112: Fix test_os.TimerfdTests: use 10 ms resolution (GH-135681) 
(#135705)

gh-126112: Fix test_os.TimerfdTests: use 10 ms resolution (GH-135681)

Use 10 ms for CLOCK_RES instead of 100 ms to tolerate slow buildbots.
(cherry picked from commit 5c25c884b93eb79f640c47d6dba20f11fdf0ade4)

Co-authored-by: Victor Stinner <vstin...@python.org>

files:
M Lib/test/test_os.py

diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index e78a7f7f67ad2a..75bbef019f4c5f 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -13,7 +13,6 @@
 import locale
 import os
 import pickle
-import platform
 import select
 import selectors
 import shutil
@@ -4127,13 +4126,8 @@ def test_eventfd_select(self):
 @unittest.skipIf(sys.platform == "android", "gh-124873: Test is flaky on 
Android")
 @support.requires_linux_version(2, 6, 30)
 class TimerfdTests(unittest.TestCase):
-    # 1 ms accuracy is reliably achievable on every platform except Android
-    # emulators, where we allow 10 ms (gh-108277).
-    if sys.platform == "android" and platform.android_ver().is_emulator:
-        CLOCK_RES_PLACES = 2
-    else:
-        CLOCK_RES_PLACES = 3
-
+    # gh-126112: Use 10 ms to tolerate slow buildbots
+    CLOCK_RES_PLACES = 2  # 10 ms
     CLOCK_RES = 10 ** -CLOCK_RES_PLACES
     CLOCK_RES_NS = 10 ** (9 - CLOCK_RES_PLACES)
 

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: arch...@mail-archive.com

Reply via email to