Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
Closed
Description
The test uses sleep and timeout in seconds (6 and 7 seconds):
@support.requires_resource('walltime')deftest_timeout(self):future1=self.executor.submit(mul,6,7)future2=self.executor.submit(time.sleep,6)# <==== HEREfinished,pending=futures.wait( [CANCELLED_AND_NOTIFIED_FUTURE,EXCEPTION_FUTURE,SUCCESSFUL_FUTURE,future1,future2],timeout=5,# <=== HEREreturn_when=futures.ALL_COMPLETED)self.assertEqual(set([CANCELLED_AND_NOTIFIED_FUTURE,EXCEPTION_FUTURE,SUCCESSFUL_FUTURE,future1]),finished)self.assertEqual(set([future2]),pending)
ARM Raspbian 3.x:
test_timeout (test.test_concurrent_futures.test_wait.ProcessPoolForkserverWaitTest.test_timeout) ... FAILStdout:12.34s (...)FAIL: test_timeout (test.test_concurrent_futures.test_wait.ProcessPoolForkserverWaitTest.test_timeout)----------------------------------------------------------------------Traceback (most recent call last): File "/var/lib/buildbot/workers/3.x.gps-raspbian.nondebug/build/Lib/test/test_concurrent_futures/test_wait.py", line 128, in test_timeout self.assertEqual(set([CANCELLED_AND_NOTIFIED_FUTURE,AssertionError: Items in the first set but not the second:<Future at 0xf5fbdfc0 state=running>build:https://buildbot.python.org/all/#/builders/424/builds/4964