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

Method tearDown

Lib/test/test_asyncio/utils.py:554–563  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

552 self._thread_cleanup = threading_helper.threading_setup()
553
554 def tearDown(self):
555 events.set_event_loop(None)
556
557 # Detect CPython bug #23353: ensure that yield/yield-from is not used
558 # in an except block of a generator
559 self.assertIsNone(sys.exception())
560
561 self.doCleanups()
562 threading_helper.threading_cleanup(*self._thread_cleanup)
563 support.reap_children()
564
565
566@contextlib.contextmanager

Callers

nothing calls this directly

Calls 4

assertIsNoneMethod · 0.95
doCleanupsMethod · 0.95
set_event_loopMethod · 0.45
exceptionMethod · 0.45

Tested by

no test coverage detected