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

Function test_native_enum_double_finalize

tests/test_native_enum.py:248–254  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

246
247
248def test_native_enum_double_finalize():
249 with pytest.raises(RuntimeError) as excinfo:
250 m.native_enum_double_finalize(m)
251 assert (
252 str(excinfo.value)
253 == 'pybind11::native_enum<...>("fake_native_enum_double_finalize"): DOUBLE finalize'
254 )
255
256
257def test_native_enum_value_after_finalize():

Callers

nothing calls this directly

Calls 1

strClass · 0.85

Tested by

no test coverage detected