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

Method tearDown

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

Source from the content-addressed store, hash-verified

64 asyncio.events._set_event_loop_policy(policy)
65
66 def tearDown(self):
67 policy = asyncio.events._get_event_loop_policy()
68 if policy.loop is not None:
69 self.assertTrue(policy.loop.is_closed())
70 self.assertTrue(policy.loop.shutdown_ag_run)
71
72 asyncio.events._set_event_loop_policy(None)
73 super().tearDown()
74
75
76class RunTests(BaseTest):

Callers

nothing calls this directly

Calls 3

superClass · 0.85
assertTrueMethod · 0.80
is_closedMethod · 0.45

Tested by

no test coverage detected