Issue #19952: test_asyncio: relax timings of Windows events, buildbots are

sometimes busy
This commit is contained in:
Victor Stinner 2013-12-13 02:45:18 +01:00
parent 2aeb070e4c
commit 24bd028092
1 changed files with 2 additions and 2 deletions

View File

@ -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__':