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

Function test_native_enum_value_after_finalize

tests/test_native_enum.py:257–263  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

255
256
257def test_native_enum_value_after_finalize():
258 with pytest.raises(RuntimeError) as excinfo:
259 m.native_enum_value_after_finalize(m)
260 assert (
261 str(excinfo.value)
262 == 'pybind11::native_enum<...>("fake_native_enum_value_after_finalize"): value after finalize'
263 )
264
265
266def test_double_registration_native_enum():

Callers

nothing calls this directly

Calls 1

strClass · 0.85

Tested by

no test coverage detected