summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r--Lib/test/test_asyncio/test_windows_events.py4
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)