()
| 264 | |
| 265 | |
| 266 | def 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 | |
| 275 | def test_native_enum_name_clash(): |