Skip to content

Commit aaac3f4

Browse files
committed
gh-126112: Fix test_os.TimerfdTests: use 10 ms resolution
Use 10 ms for CLOCK_RES instead of 100 ms to tolerate slow buildbots.
1 parent 343719d commit aaac3f4

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Lib/test/test_os.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4291,13 +4291,8 @@ def test_eventfd_select(self):
42914291
@unittest.skipIf(sys.platform == "android", "gh-124873: Test is flaky on Android")
42924292
@support.requires_linux_version(2, 6, 30)
42934293
class TimerfdTests(unittest.TestCase):
4294-
# 1 ms accuracy is reliably achievable on every platform except Android
4295-
# emulators, where we allow 10 ms (gh-108277).
4296-
if sys.platform == "android" and platform.android_ver().is_emulator:
4297-
CLOCK_RES_PLACES = 2
4298-
else:
4299-
CLOCK_RES_PLACES = 3
4300-
4294+
# gh-126112: Use 10 ms to tolerate slow buildbots
4295+
CLOCK_RES_PLACES = 2 # 10 ms
43014296
CLOCK_RES = 10 ** -CLOCK_RES_PLACES
43024297
CLOCK_RES_NS = 10 ** (9 - CLOCK_RES_PLACES)
43034298

0 commit comments

Comments
 (0)