aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/pysidetest/enum_test.py
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2024-06-10 14:56:00 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2025-08-05 16:31:46 +0200
commit12b5f72a4909ab04461cb26fb3eebbc0726df6d0 (patch)
treef20525bb333d1e74e39a2000a9b792bd575ce743 /sources/pyside6/tests/pysidetest/enum_test.py
parent65e8d903867f6140e04f4e9f4637ba1a40998125 (diff)
Lazy Load: Remove exclusion for testbinding
Use .value to compare against the Enum value in a hidden namespace. Task-number: PYSIDE-2404 Change-Id: I2a7bda2aeac6aa69b3d38d2e377ac9b1127e1fee Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/tests/pysidetest/enum_test.py')
-rw-r--r--sources/pyside6/tests/pysidetest/enum_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/pyside6/tests/pysidetest/enum_test.py b/sources/pyside6/tests/pysidetest/enum_test.py
index ab20cbab4..a60b4d188 100644
--- a/sources/pyside6/tests/pysidetest/enum_test.py
+++ b/sources/pyside6/tests/pysidetest/enum_test.py
@@ -20,8 +20,8 @@ import dis
class ListConnectionTest(unittest.TestCase):
def testEnumVisibility(self):
- self.assertEqual(Enum1.Option1, 1)
- self.assertEqual(Enum1.Option2, 2)
+ self.assertEqual(Enum1.Option1.value, 1)
+ self.assertEqual(Enum1.Option2.value, 2)
self.assertEqual(TestObjectWithoutNamespace.Enum2.Option3, 3)
self.assertEqual(TestObjectWithoutNamespace.Enum2.Option4, 4)