Skip to content

Commit 6a06634

Browse files
miss-islingtonmhsmithvstinner
authored
[3.13] gh-124873: Skip timerfd tests on Android (GH-127279) (#127290)
gh-124873: Skip timerfd tests on Android (GH-127279) * Revert "[3.13] gh-124873: Tolerate 100 ms in TimerfdTests on Android (GH-127101) (GH-127105)" This reverts commit c09366b. * Skip timerfd tests on Android. (cherry picked from commit 4ca2c82) Co-authored-by: Malcolm Smith <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
1 parent 1056f38 commit 6a06634

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
@@ -4124,12 +4124,13 @@ def test_eventfd_select(self):
41244124
os.eventfd_read(fd)
41254125

41264126
@unittest.skipUnless(hasattr(os, 'timerfd_create'), 'requires os.timerfd_create')
4127+
@unittest.skipIf(sys.platform == "android", "gh-124873: Test is flaky on Android")
41274128
@support.requires_linux_version(2, 6, 30)
41284129
class TimerfdTests(unittest.TestCase):
41294130
# 1 ms accuracy is reliably achievable on every platform except Android
4130-
# emulators, where we allow 100 ms (gh-124873).
4131+
# emulators, where we allow 10 ms (gh-108277).
41314132
if sys.platform == "android" and platform.android_ver().is_emulator:
4132-
CLOCK_RES_PLACES = 1
4133+
CLOCK_RES_PLACES = 2
41334134
else:
41344135
CLOCK_RES_PLACES = 3
41354136

0 commit comments

Comments
 (0)