diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-08-10 23:23:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-10 23:23:22 (GMT) |
commit | 5659a72f487579be76335c09c8ba8b2f1800adde (patch) | |
tree | a424e0e862347a505318b299080bf085b1a3bc42 | |
parent | 957d0e9b59bd27ca7c473560634d8b5dbe66338c (diff) | |
download | cpython-5659a72f487579be76335c09c8ba8b2f1800adde.zip cpython-5659a72f487579be76335c09c8ba8b2f1800adde.tar.gz cpython-5659a72f487579be76335c09c8ba8b2f1800adde.tar.bz2 |
bpo-31008: Fix asyncio test_wait_for_handle on Windows (#3065)
-rw-r--r-- | Lib/test/test_asyncio/test_windows_events.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_windows_events.py b/Lib/test/test_asyncio/test_windows_events.py index 1afcae1..c72eef1 100644 --- a/Lib/test/test_asyncio/test_windows_events.py +++ b/Lib/test/test_asyncio/test_windows_events.py @@ -118,7 +118,9 @@ class ProactorTests(test_utils.TestCase): self.assertEqual(done, False) self.assertFalse(fut.result()) - self.assertTrue(0.48 < elapsed < 0.9, elapsed) + # bpo-31008: Tolerate only 450 ms (at least 500 ms expected), + # because of bad clock resolution on Windows + self.assertTrue(0.45 <= elapsed <= 0.9, elapsed) _overlapped.SetEvent(event) |