-
- Notifications
You must be signed in to change notification settings - Fork 33.6k
Closed
Labels
testsTests in the Lib/test dirTests in the Lib/test dir
Description
The test uses sleep and timeout in seconds (6 and 7 seconds):
@support.requires_resource('walltime') def test_timeout(self): future1 = self.executor.submit(mul, 6, 7) future2 = self.executor.submit(time.sleep, 6) # <==== HERE finished, pending = futures.wait( [CANCELLED_AND_NOTIFIED_FUTURE, EXCEPTION_FUTURE, SUCCESSFUL_FUTURE, future1, future2], timeout=5, # <=== HERE return_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) ... FAIL Stdout: 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
Linked PRs
Metadata
Metadata
Assignees
Labels
testsTests in the Lib/test dirTests in the Lib/test dir