]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
test_selectors: test_timeout fails sometimes on busy (slow) buildbots, relax
authorVictor Stinner <victor.stinner@gmail.com>
Sun, 17 Nov 2013 22:46:34 +0000 (23:46 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Sun, 17 Nov 2013 22:46:34 +0000 (23:46 +0100)
commit1a048f93bb62ef1b301de8aa8e422e864db2f423
treef83e6923fdd01926392f604d438ef7a49c32e101
parent55329f8fbd7d4beb1483705f8a7bf1419e2eaba6
test_selectors: test_timeout fails sometimes on busy (slow) buildbots, relax
the unit test on max time (but be more strict on mon time). Example of failure:

http://buildbot.python.org/all/builders/x86%20OpenIndiana%203.x/builds/6978/steps/test/logs/stdio

======================================================================
FAIL: test_timeout (test.test_selectors.PollSelectorTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/test/test_selectors.py", line 316, in test_timeout
    self.assertTrue(0.5 < t1 - t0 < 1.5, t1 - t0)
AssertionError: False is not true : 1.5033390671014786
Lib/test/test_selectors.py