Skip to content

Commit bd80d60

Browse files
mhsmithvstinner
authored andcommitted
pythongh-124873: Skip timerfd tests on Android (python#127279)
* Revert "[3.13] pythongh-124873: Tolerate 100 ms in TimerfdTests on Android (pythonGH-127101) (python#127105)" This reverts commit c09366b. * Skip timerfd tests on Android. Co-authored-by: Victor Stinner <[email protected]>
1 parent 691e84c commit bd80d60

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/test/test_os.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4174,12 +4174,13 @@ def test_eventfd_select(self):
41744174
os.eventfd_read(fd)
41754175

41764176
@unittest.skipUnless(hasattr(os, 'timerfd_create'), 'requires os.timerfd_create')
4177+
@unittest.skipIf(sys.platform == "android", "gh-124873: Test is flaky on Android")
41774178
@support.requires_linux_version(2, 6, 30)
41784179
class TimerfdTests(unittest.TestCase):
41794180
# 1 ms accuracy is reliably achievable on every platform except Android
4180-
# emulators, where we allow 100 ms (gh-124873).
4181+
# emulators, where we allow 10 ms (gh-108277).
41814182
if sys.platform == "android" and platform.android_ver().is_emulator:
4182-
CLOCK_RES_PLACES = 1
4183+
CLOCK_RES_PLACES = 2
41834184
else:
41844185
CLOCK_RES_PLACES = 3
41854186

0 commit comments

Comments
 (0)