diff options
author | Victor Stinner <vstinner@python.org> | 2024-11-21 14:53:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-21 14:53:52 (GMT) |
commit | bab4b0462ebd782dd6965beb0ccae6341af43ceb (patch) | |
tree | 2553bbcdbc45126603fc6b5c5cc2bf0910a94dde | |
parent | 3c2bd66e21bd8de69a89ebf09ff9d8e78ddfb839 (diff) | |
download | cpython-bab4b0462ebd782dd6965beb0ccae6341af43ceb.zip cpython-bab4b0462ebd782dd6965beb0ccae6341af43ceb.tar.gz cpython-bab4b0462ebd782dd6965beb0ccae6341af43ceb.tar.bz2 |
gh-124873: Tolerate 100 ms in TimerfdTests on Android (#127101)
On Android, TimerfdTests of test_os now uses 100 ms accuracy instead
of 10 ms.
-rw-r--r-- | Lib/test/test_os.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 467da78..99515df 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -4177,9 +4177,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 |