[Python-checkins] bpo-31008: Fix asyncio test_wait_for_handle on Windows (#3065) (#3068)
Victor Stinner
webhook-mailer at python.org
Thu Aug 10 19:52:16 EDT 2017
https://github.com/python/cpython/commit/270c3c62edd81c14fcdb6a24b4b518a777ec6534
commit: 270c3c62edd81c14fcdb6a24b4b518a777ec6534
branch: 3.6
author: Victor Stinner <victor.stinner at gmail.com>
committer: GitHub <noreply at github.com>
date: 2017-08-11T01:52:13+02:00
summary:
bpo-31008: Fix asyncio test_wait_for_handle on Windows (#3065) (#3068)
(cherry picked from commit 5659a72f487579be76335c09c8ba8b2f1800adde)
files:
M Lib/test/test_asyncio/test_windows_events.py
diff --git a/Lib/test/test_asyncio/test_windows_events.py b/Lib/test/test_asyncio/test_windows_events.py
index 1afcae107b0..c72eef1afdb 100644
--- a/Lib/test/test_asyncio/test_windows_events.py
+++ b/Lib/test/test_asyncio/test_windows_events.py
@@ -118,7 +118,9 @@ def test_wait_for_handle(self):
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)
More information about the Python-checkins
mailing list