8000 [3.13] gh-126112: Fix test_os.TimerfdTests: use 10 ms resolution (GH-… · python/cpython@55a34a1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 55a34a1

Browse files
[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 5c25c88) Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent 773ca09 commit 55a34a1

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

Lib/test/test_os.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import locale
1414
import os
1515
import pickle
16-
import platform
1716
import select
1817
import selectors
1918
import shutil
@@ -4127,13 +4126,8 @@ def test_eventfd_select(self):
41274126
@unittest.skipIf(sys.platform == "android", "gh-124873: Test is flaky on Android")
41284127
@support.requires_linux_version(2, 6, 30)
41294128
class TimerfdTests(unittest.TestCase):
4130-
# 1 ms accuracy is reliably achievable on every platform except Android
4131-
# emulators, where we allow 10 ms (gh-108277).
4132-
if sys.platform == "android" and platform.android_ver().is_emulator:
4133-
CLOCK_RES_PLACES = 2
4134-
else:
4135-
CLOCK_RES_PLACES = 3
4136-
4129+
# gh-126112: Use 10 ms to tolerate slow buildbots
4130+
CLOCK_RES_PLACES = 2 # 10 ms
41374131
CLOCK_RES = 10 ** -CLOCK_RES_PLACES
41384132
CLOCK_RES_NS = 10 ** (9 - CLOCK_RES_PLACES)
41394133

0 commit comments

Comments
 (0)
0