From 46fbe0ef9db775f97a72f4c3e18fbdb96e0b3522 Mon Sep 17 00:00:00 2001 From: Tomasz Wejroch Date: Fri, 24 Oct 2025 10:11:25 +0200 Subject: [PATCH] issue-457 Test case reproducing a bug --- python_tests/test_enum.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/python_tests/test_enum.py b/python_tests/test_enum.py index 41b60860..75ba2c73 100644 --- a/python_tests/test_enum.py +++ b/python_tests/test_enum.py @@ -358,3 +358,11 @@ def test_enum_value_repr_lookup_in_python_collection(db0_fixture): # look up by enum value repr assert Colors.values()[0] not in set() assert Colors.values()[0] not in {} + + +# FIXME: https://github.com/dbzero-software/dbzero/issues/457 +# def test_enum_value_repr_after_init(db0_fixture): +# Colors = db0.enum("Colors", ["RED", "GREEN", "BLUE"]) +# db0.close() +# db0.init(DB0_DIR) +# _ = Colors.RED