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

Function test_double_registration_native_enum

tests/test_native_enum.py:266–272  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

264
265
266def test_double_registration_native_enum():
267 with pytest.raises(RuntimeError) as excinfo:
268 m.double_registration_native_enum(m)
269 assert (
270 str(excinfo.value)
271 == 'pybind11::native_enum<...>("fake_double_registration_native_enum") is already registered!'
272 )
273
274
275def test_native_enum_name_clash():

Callers

nothing calls this directly

Calls 1

strClass · 0.85

Tested by

no test coverage detected