mirror of
https://github.com/python/cpython.git
synced 2026-05-05 01:51:01 +00:00
bpo-31008: Fix asyncio test_wait_for_handle on Windows (#3065)
This commit is contained in:
parent
957d0e9b59
commit
5659a72f48
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue