MCPcopy Index your code
hub / github.com/python/cpython / test_running

Method test_running

Lib/test/test_concurrent_futures/test_future.py:180–186  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

178 self.assertTrue(SUCCESSFUL_FUTURE.done())
179
180 def test_running(self):
181 self.assertFalse(PENDING_FUTURE.running())
182 self.assertTrue(RUNNING_FUTURE.running())
183 self.assertFalse(CANCELLED_FUTURE.running())
184 self.assertFalse(CANCELLED_AND_NOTIFIED_FUTURE.running())
185 self.assertFalse(EXCEPTION_FUTURE.running())
186 self.assertFalse(SUCCESSFUL_FUTURE.running())
187
188 def test_result_with_timeout(self):
189 self.assertRaises(futures.TimeoutError,

Callers

nothing calls this directly

Calls 3

assertFalseMethod · 0.80
assertTrueMethod · 0.80
runningMethod · 0.45

Tested by

no test coverage detected