MCPcopy Index your code
hub / github.com/RustPython/RustPython / cleanup

Method cleanup

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

Source from the content-addressed store, hash-verified

447 events.append('asyncTearDown')
448
449 async def cleanup(self, fut):
450 try:
451 # Raises an exception if in different loop
452 await asyncio.wait([fut])
453 events.append('cleanup')
454 except:
455 import traceback
456 traceback.print_exc()
457 raise
458
459 events = []
460 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