Skip to content

Commit

Permalink
[3.13] pythongh-124873: Skip timerfd tests on Android (pythonGH-127279)…
Browse files Browse the repository at this point in the history
… (python#127290)

pythongh-124873: Skip timerfd tests on Android (pythonGH-127279)

* Revert "[3.13] pythongh-124873: Tolerate 100 ms in TimerfdTests on Android (pythonGH-127101) (pythonGH-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]>
  • Loading branch information
3 people authored Nov 29, 2024
1 parent 1056f38 commit 6a06634
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Lib/test/test_os.py
Original file line number Diff line number Diff line change
Expand Up @@ -4124,12 +4124,13 @@ def test_eventfd_select(self):
os.eventfd_read(fd)

@unittest.skipUnless(hasattr(os, 'timerfd_create'), 'requires os.timerfd_create')
@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 100 ms (gh-124873).
# emulators, where we allow 10 ms (gh-108277).
if sys.platform == "android" and platform.android_ver().is_emulator:
CLOCK_RES_PLACES = 1
CLOCK_RES_PLACES = 2
else:
CLOCK_RES_PLACES = 3

Expand Down

0 comments on commit 6a06634

Please sign in to comment.