()
| 273 | |
| 274 | |
| 275 | def test_native_enum_name_clash(): |
| 276 | m.fake_native_enum_name_clash = None |
| 277 | with pytest.raises(RuntimeError) as excinfo: |
| 278 | m.native_enum_name_clash(m) |
| 279 | assert ( |
| 280 | str(excinfo.value) |
| 281 | == 'pybind11::native_enum<...>("fake_native_enum_name_clash"):' |
| 282 | " an object with that name is already defined" |
| 283 | ) |
| 284 | |
| 285 | |
| 286 | def test_native_enum_value_name_clash(): |