Message331939
https://buildbot.python.org/all/#/builders/145/builds/956
Unhandled exception in thread started by <function Bunch.__init__.<locals>.task at 0x111775cb0>
Traceback (most recent call last):
File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/test/lock_tests.py", line 41, in task
f()
File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/test/lock_tests.py", line 591, in f
self.assertTimeout(dt, 0.1)
File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/test/lock_tests.py", line 80, in assertTimeout
self.assertGreaterEqual(actual, expected * 0.6)
File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/unittest/case.py", line 1283, in assertGreaterEqual
self.fail(self._formatMessage(msg, standardMsg))
File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/unittest/case.py", line 719, in fail
raise self.failureException(msg)
AssertionError: -0.24049997329711914 not greater than or equal to 0.06
test_waitfor_timeout (test.test_threading.ConditionTests) ... FAIL
test_waitfor_timeout():
...
dt = time.time()
result = cond.wait_for(lambda : state==4, timeout=0.1)
dt = time.time() - dt
self.assertFalse(result)
self.assertTimeout(dt, 0.1)
...
with:
def assertTimeout(self, actual, expected):
...
self.assertGreaterEqual(actual, expected * 0.6)
...
It seems like time.time() gone backward on the buildbot. The test must use time.monotonic() to measure time difference.
Attached PR fix the issue. |
|
Date |
User |
Action |
Args |
2018-12-16 22:05:49 | vstinner | set | recipients:
+ vstinner, pablogsal |
2018-12-16 22:05:49 | vstinner | set | messageid: <1544997949.57.0.788709270274.issue35513@psf.upfronthosting.co.za> |
2018-12-16 22:05:49 | vstinner | link | issue35513 messages |
2018-12-16 22:05:48 | vstinner | create | |
|