diff options
author | Malcolm Smith <smith@chaquo.com> | 2024-11-26 09:46:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-26 09:46:46 (GMT) |
commit | 4ca2c82862e3810a7d68799df2bb5198a9afb219 (patch) | |
tree | 1e5002a780d1042c703dd19db143fa850df4fea7 /Lib | |
parent | 3c7a90a83146dc6e55f6f9ecd9af0bf9682f98a6 (diff) | |
download | cpython-4ca2c82862e3810a7d68799df2bb5198a9afb219.zip cpython-4ca2c82862e3810a7d68799df2bb5198a9afb219.tar.gz cpython-4ca2c82862e3810a7d68799df2bb5198a9afb219.tar.bz2 |
gh-124873: Skip timerfd tests on Android (#127279)
* 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>
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_os.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 99515df..f3d2ceb 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -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 |