mirror of
https://github.com/python/cpython.git
synced 2024-11-23 01:45:25 +08:00
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.
This commit is contained in:
parent
3c2bd66e21
commit
bab4b0462e
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user