()
| 246 | |
| 247 | |
| 248 | def 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 | |
| 257 | def test_native_enum_value_after_finalize(): |