()
| 238 | |
| 239 | |
| 240 | def 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 | |
| 246 | def test_char_underlying_enum(): # Issue #1331/PR #1334: |