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

Function test_duplicate_enum_name

tests/test_enum.py:240–243  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

238
239
240def test_duplicate_enum_name():
241 with pytest.raises(ValueError) as excinfo:
242 m.register_bad_enum()
243 assert str(excinfo.value) == 'SimpleEnum: element "ONE" already exists!'
244
245
246def test_char_underlying_enum(): # Issue #1331/PR #1334:

Callers

nothing calls this directly

Calls 1

strClass · 0.85

Tested by

no test coverage detected