aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/samplebinding/sample_test.py
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2023-06-09 13:48:44 +0200
committerChristian Tismer <tismer@stackless.com>2023-06-16 19:15:31 +0200
commit9446e0c8b4711cb886c2449fd8e17dcb26e69b6b (patch)
tree85b6e694870f1dd08fd2d84ec781fdb5190118cb /sources/shiboken6/tests/samplebinding/sample_test.py
parent2b75519adf23ba490e32659ca337b48e7ae4ec41 (diff)
PyEnum: Update docs and rename the option
The new Enum implementation can no longer be switched off. Individual features can still be deselected with the environment variable PYSIDE6_OPTION_PYTHON_ENUM which had the name PYSIDE63_OPTION_PYTHON_ENUM before. This change is meant for PySide 6.6 . Task-number: PYSIDE-1735 Change-Id: Iae5b7a9d42a0d7b005dbba20201a80713ef79be9 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/shiboken6/tests/samplebinding/sample_test.py')
-rw-r--r--sources/shiboken6/tests/samplebinding/sample_test.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/shiboken6/tests/samplebinding/sample_test.py b/sources/shiboken6/tests/samplebinding/sample_test.py
index 52abc968f..45c47a4c9 100644
--- a/sources/shiboken6/tests/samplebinding/sample_test.py
+++ b/sources/shiboken6/tests/samplebinding/sample_test.py
@@ -18,7 +18,7 @@ import sample
class ModuleTest(unittest.TestCase):
'''Test case for module and global functions'''
- @unittest.skipIf(sys.pyside63_option_python_enum, "Makes no sense with strict Enums")
+ @unittest.skipIf(sys.pyside6_option_python_enum, "Makes no sense with strict Enums")
def testModuleMembers(self):
'''Test availability of classes, global functions and other members on binding'''
expected_members = set(['Abstract', 'Derived', 'Point',
@@ -31,14 +31,14 @@ class ModuleTest(unittest.TestCase):
'GlobalEnum', 'NoThing'])
self.assertTrue(expected_members.issubset(dir(sample)))
- @unittest.skipIf(sys.pyside63_option_python_enum, "Makes no sense with strict Enums")
+ @unittest.skipIf(sys.pyside6_option_python_enum, "Makes no sense with strict Enums")
def testAbstractPrintFormatEnum(self):
'''Test availability of PrintFormat enum from Abstract class'''
enum_members = set(['PrintFormat', 'Short', 'Verbose',
'OnlyId', 'ClassNameAndId'])
self.assertTrue(enum_members.issubset(dir(sample.Abstract)))
- @unittest.skipIf(sys.pyside63_option_python_enum, "Makes no sense with strict Enums")
+ @unittest.skipIf(sys.pyside6_option_python_enum, "Makes no sense with strict Enums")
def testSampleNamespaceOptionEnum(self):
'''Test availability of Option enum from SampleNamespace namespace'''
enum_members = set(['Option', 'None_', 'RandomNumber', 'UnixTime'])