Home
last modified time | relevance | path

Searched refs:CANCELLED_FUTURE (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_concurrent_futures.py37 CANCELLED_FUTURE = create_future(state=CANCELLED) variable
225 [CANCELLED_FUTURE, future1, future2],
229 self.assertEqual(set([CANCELLED_FUTURE, future2]), not_done)
261 CANCELLED_FUTURE,
269 self.assertEqual(set([CANCELLED_FUTURE, future2]), pending)
628 self.assertRegex(repr(CANCELLED_FUTURE),
669 self.assertTrue(CANCELLED_FUTURE.cancelled())
677 self.assertTrue(CANCELLED_FUTURE.done())
685 self.assertFalse(CANCELLED_FUTURE.running())
696 CANCELLED_FUTURE.result, timeout=0)
[all …]
/external/python/futures/
Dtest_futures.py116 CANCELLED_FUTURE = create_future(state=CANCELLED) variable
303 [CANCELLED_FUTURE, future1, future2],
307 self.assertEqual(set([CANCELLED_FUTURE, future2]), not_done)
339 CANCELLED_FUTURE,
347 self.assertEqual(set([CANCELLED_FUTURE, future2]), pending)
634 self.assertRegexpMatches(repr(CANCELLED_FUTURE),
674 self.assertTrue(CANCELLED_FUTURE.cancelled())
682 self.assertTrue(CANCELLED_FUTURE.done())
690 self.assertFalse(CANCELLED_FUTURE.running())
701 CANCELLED_FUTURE.result, timeout=0)
[all …]