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

Method tearDown

Lib/test/test_asyncio/functional.py:32–43  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

30 self.__unhandled_exceptions = []
31
32 def tearDown(self):
33 try:
34 self.loop.close()
35
36 if self.__unhandled_exceptions:
37 print('Unexpected calls to loop.call_exception_handler():')
38 pprint.pprint(self.__unhandled_exceptions)
39 self.fail('unexpected calls to loop.call_exception_handler()')
40
41 finally:
42 asyncio.set_event_loop(None)
43 self.loop = None
44
45 def tcp_server(self, server_prog, *,
46 family=socket.AF_INET,

Callers

nothing calls this directly

Calls 4

closeMethod · 0.45
pprintMethod · 0.45
failMethod · 0.45
set_event_loopMethod · 0.45

Tested by

no test coverage detected