gh-115252: Fix `test_enum` with `-OO` mode (GH-115253)

1 file changed