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

Method test_double_close

Lib/test/test_asyncio/test_runners.py:357–366  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

355 self.assertTrue(loop.is_closed())
356
357 def test_double_close(self):
358 runner = asyncio.Runner()
359 loop = runner.get_loop()
360
361 runner.close()
362 self.assertTrue(loop.is_closed())
363
364 # the second call is no-op
365 runner.close()
366 self.assertTrue(loop.is_closed())
367
368 def test_second_with_block_raises(self):
369 ret = []

Callers

nothing calls this directly

Calls 4

get_loopMethod · 0.95
closeMethod · 0.95
assertTrueMethod · 0.80
is_closedMethod · 0.45

Tested by

no test coverage detected