]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-124873: Tolerate 100 ms in TimerfdTests on Android (GH-127101) (#127105)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 21 Nov 2024 15:29:01 +0000 (16:29 +0100)
committerGitHub <noreply@github.com>
Thu, 21 Nov 2024 15:29:01 +0000 (15:29 +0000)
gh-124873: Tolerate 100 ms in TimerfdTests on Android (GH-127101)

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

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_os.py

index 98fcffb3f58e24c4a7271d7c1911fb308462c5d3..10b489fb3e3538d77f11bfc7e92d0967f273e793 100644 (file)
@@ -4127,9 +4127,9 @@ class EventfdTests(unittest.TestCase):
 @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