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

Method cleanup

Lib/test/test_unittest/test_async_case.py:447–455  ·  view source on GitHub ↗
(self, fut)

Source from the content-addressed store, hash-verified

445 events.append('asyncTearDown')
446
447 async def cleanup(self, fut):
448 try:
449 # Raises an exception if in different loop
450 await asyncio.wait([fut])
451 events.append('cleanup')
452 except:
453 import traceback
454 traceback.print_exc()
455 raise
456
457 events = []
458 test = Test("test_func")

Callers

nothing calls this directly

Calls 3

print_excMethod · 0.80
waitMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected