diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-07-24 10:04:22 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-07-24 10:04:22 (GMT) |
commit | 0e243612f8ac872931dc00d0eb4f95e5c4226518 (patch) | |
tree | 3a8a4fd02b83123f64eda7ecc681909d70593f05 | |
parent | 5006b1fd96d614e521573e98ce834e5da17b39c7 (diff) | |
download | cpython-0e243612f8ac872931dc00d0eb4f95e5c4226518.zip cpython-0e243612f8ac872931dc00d0eb4f95e5c4226518.tar.gz cpython-0e243612f8ac872931dc00d0eb4f95e5c4226518.tar.bz2 |
asyncio tests: relax timings for slow buildbots
-rw-r--r-- | Lib/test/test_asyncio/test_windows_events.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_asyncio/test_windows_events.py b/Lib/test/test_asyncio/test_windows_events.py index 4ab56e6..689deb4 100644 --- a/Lib/test/test_asyncio/test_windows_events.py +++ b/Lib/test/test_asyncio/test_windows_events.py @@ -94,14 +94,14 @@ class ProactorTests(test_utils.TestCase): event = _overlapped.CreateEvent(None, True, False, None) self.addCleanup(_winapi.CloseHandle, event) - # Wait for unset event with 0.2s timeout; + # Wait for unset event with 0.5s timeout; # result should be False at timeout - f = self.loop._proactor.wait_for_handle(event, 0.2) + f = self.loop._proactor.wait_for_handle(event, 0.5) start = self.loop.time() self.loop.run_until_complete(f) elapsed = self.loop.time() - start self.assertFalse(f.result()) - self.assertTrue(0.18 < elapsed < 0.9, elapsed) + self.assertTrue(0.48 < elapsed < 0.9, elapsed) _overlapped.SetEvent(event) @@ -112,7 +112,7 @@ class ProactorTests(test_utils.TestCase): self.loop.run_until_complete(f) elapsed = self.loop.time() - start self.assertTrue(f.result()) - self.assertTrue(0 <= elapsed < 0.1, elapsed) + self.assertTrue(0 <= elapsed < 0.3, elapsed) _overlapped.ResetEvent(event) |