aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtGui/bug_617.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtGui/bug_617.py')
-rw-r--r--sources/pyside6/tests/QtGui/bug_617.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/sources/pyside6/tests/QtGui/bug_617.py b/sources/pyside6/tests/QtGui/bug_617.py
index a6487768b..d90d1e754 100644
--- a/sources/pyside6/tests/QtGui/bug_617.py
+++ b/sources/pyside6/tests/QtGui/bug_617.py
@@ -16,12 +16,7 @@ from PySide6.QtGui import QColor
class MyEvent(QEvent):
def __init__(self):
- if sys.pyside63_option_python_enum:
- # PYSIDE-1735: Python Enum: We cannot assign arbitrary numbers.
- # They must exist as constants in the type.
- QEvent.__init__(self, QEvent.Type(1000))
- else:
- QEvent.__init__(self, QEvent.Type(999))
+ QEvent.__init__(self, QEvent.Type(999))
class Bug617(unittest.TestCase):
@@ -32,8 +27,7 @@ class Bug617(unittest.TestCase):
def testOutOfBounds(self):
e = MyEvent()
- self.assertEqual(repr(e.type()), "<Type.User: 1000>"
- if sys.pyside63_option_python_enum else "PySide6.QtCore.QEvent.Type(999)")
+ self.assertEqual(repr(e.type()), "<Type.999: 999>")
if __name__ == "__main__":