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

Method exc_handler

Lib/test/test_asyncio/test_futures2.py:36–39  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

34 exc_handler_called = False
35
36 def exc_handler(*args):
37 self.assertEqual(name.get(), 'bar')
38 nonlocal exc_handler_called
39 exc_handler_called = True
40
41 async def task():
42 name.set('bar')

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected