Skip to content

Commit

Permalink
pythongh-124873: Tolerate 100 ms in TimerfdTests on Android (pythonGH…
Browse files Browse the repository at this point in the history
…-127101)

On Android, TimerfdTests of test_os now uses 100 ms accuracy instead
of 10 ms.
(cherry picked from commit bab4b04)

Co-authored-by: Victor Stinner <[email protected]>
  • Loading branch information
vstinner authored and miss-islington committed Nov 21, 2024
1 parent 6e5e7bc commit 804d18f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/test/test_os.py
Original file line number Diff line number Diff line change
Expand Up @@ -4127,9 +4127,9 @@ def test_eventfd_select(self):
@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 10 ms (gh-108277).
# emulators, where we allow 100 ms (gh-124873).
if sys.platform == "android" and platform.android_ver().is_emulator:
CLOCK_RES_PLACES = 2
CLOCK_RES_PLACES = 1
else:
CLOCK_RES_PLACES = 3

Expand Down

0 comments on commit 804d18f

Please sign in to comment.