Issue #19952: test_asyncio: relax timings of Windows events, buildbots are
sometimes busy
This commit is contained in:
parent
2aeb070e4c
commit
24bd028092
|
@ -120,7 +120,7 @@ class ProactorTests(unittest.TestCase):
|
|||
self.loop.run_until_complete(f)
|
||||
elapsed = self.loop.time() - start
|
||||
self.assertTrue(f.result())
|
||||
self.assertTrue(0 <= elapsed < 0.02, elapsed)
|
||||
self.assertTrue(0 <= elapsed < 0.1, elapsed)
|
||||
|
||||
_overlapped.ResetEvent(event)
|
||||
|
||||
|
@ -132,7 +132,7 @@ class ProactorTests(unittest.TestCase):
|
|||
with self.assertRaises(futures.CancelledError):
|
||||
self.loop.run_until_complete(f)
|
||||
elapsed = self.loop.time() - start
|
||||
self.assertTrue(0 <= elapsed < 0.02, elapsed)
|
||||
self.assertTrue(0 <= elapsed < 0.1, elapsed)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in New Issue