]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-124873: Skip timerfd tests on Android (#127279)
authorMalcolm Smith <smith@chaquo.com>
Tue, 26 Nov 2024 09:46:46 +0000 (09:46 +0000)
committerGitHub <noreply@github.com>
Tue, 26 Nov 2024 09:46:46 +0000 (09:46 +0000)
* Revert "[3.13] gh-124873: Tolerate 100 ms in TimerfdTests on Android (GH-127101) (#127105)"

This reverts commit c09366b1fed2289530581505834b2b262120a7c7.

* Skip timerfd tests on Android.

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

index 99515dfc71f9ba96e56d2689d6d624a8978e4f7c..f3d2ceb263f6f42ddab9402be7e5995f762b09f3 100644 (file)
@@ -4174,12 +4174,13 @@ class EventfdTests(unittest.TestCase):
         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