]> granicus.if.org Git - python/commitdiff
Relax timing on test_asyncio for busy (slow) Windows buildbots
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 18 Nov 2013 10:05:22 +0000 (11:05 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 18 Nov 2013 10:05:22 +0000 (11:05 +0100)
http://buildbot.python.org/all/builders/AMD64%20Windows%20Server%202008%20%5BSB%5D%203.x/builds/1649/steps/test/logs/stdio

======================================================================
FAIL: test_wait_for_handle (test.test_asyncio.test_windows_events.ProactorTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "E:\home\cpython\buildslave\x64\3.x.snakebite-win2k8r2sp1-amd64\build\lib\test\test_asyncio\test_windows_events.py", line 112, in test_wait_for_handle
    self.assertTrue(0.18 < elapsed < 0.22, elapsed)
AssertionError: False is not true : 0.25

Lib/test/test_asyncio/test_windows_events.py

index f5147de25dc482c1bd7fba127f22fdc89878cb2b..7ba33dacc41d9dc0e2c5d75ff7b9099443d2d612 100644 (file)
@@ -109,7 +109,7 @@ class ProactorTests(unittest.TestCase):
         self.loop.run_until_complete(f)
         elapsed = self.loop.time() - start
         self.assertFalse(f.result())
-        self.assertTrue(0.18 < elapsed < 0.22, elapsed)
+        self.assertTrue(0.18 < elapsed < 0.5, elapsed)
 
         _overlapped.SetEvent(event)