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

Function test_block_add_hook_baseexception

Lib/test/audit-tests.py:101–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99
100
101def test_block_add_hook_baseexception():
102 # Raising BaseException will propagate out when adding a hook
103 with assertRaises(BaseException):
104 with TestHook(
105 raise_on_events="sys.addaudithook", exc_type=BaseException
106 ) as hook1:
107 # Adding this next hook should raise BaseException
108 with TestHook() as hook2:
109 pass
110
111
112def test_marshal():

Callers

nothing calls this directly

Calls 2

assertRaisesFunction · 0.85
TestHookClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…