MCPcopy Create free account
hub / github.com/pybind/pybind11 / test_cross_module_exception_translator

Function test_cross_module_exception_translator

tests/test_exceptions.py:84–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82 strict=not env.PYPY, # PR 5569
83)
84def test_cross_module_exception_translator():
85 with pytest.raises(KeyError):
86 # translator registered in cross_module_tests
87 m.throw_should_be_translated_to_key_error()
88
89
90def test_python_call_in_catch():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected