aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/otherbinding
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2022-04-10 17:22:14 +0200
committerChristian Tismer <tismer@stackless.com>2022-05-22 19:27:43 +0200
commit4362ded78ae459265c1e6b7cf562d5cdad382003 (patch)
treeb76145748f01064b76021bbcac526e36bd6006db /sources/shiboken6/tests/otherbinding
parent37b5b3e2db07d4256aa17376d231a76ea3c393cd (diff)
PyEnum: Prepare Enum tests for both old and new enums
These tests are now completely identical to the old tests and have an adapted Python Enum version if suitable. Both versions can be selected once at runtime. Having both test versions available as a runtime option is a nice feature that really helps understanding the consequences of the PyEnum move. [ChangeLog][PySide6] The QEnum tests are enabled for both the old Qt Enums and the new Python Enums. Change-Id: I78a7473f4a86f8d2115acc56e4ed11cf135eb000 Pick-to: 6.3 Task-number: PYSIDE-1735 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken6/tests/otherbinding')
-rw-r--r--sources/shiboken6/tests/otherbinding/signature_test.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/sources/shiboken6/tests/otherbinding/signature_test.py b/sources/shiboken6/tests/otherbinding/signature_test.py
index 3160ce5fa..81fc8cdc0 100644
--- a/sources/shiboken6/tests/otherbinding/signature_test.py
+++ b/sources/shiboken6/tests/otherbinding/signature_test.py
@@ -51,11 +51,14 @@ from shibokensupport.signature import get_signature
class SignatureTest(unittest.TestCase):
- # Check if the argument of 'OtherObjectType::enumAsInt(SampleNamespace::SomeClass::PublicScopedEnum value)'
+ # Check if the argument of
+ # 'OtherObjectType::enumAsInt(SampleNamespace::SomeClass::PublicScopedEnum value)'
# has the correct representation
def testNamespaceFromOtherModule(self):
- argType = get_signature(OtherObjectType.enumAsInt).parameters['value'].annotation
- self.assertEqual(objectFullname(argType), 'sample.SampleNamespace.SomeClass.PublicScopedEnum')
+ argType = get_signature(OtherObjectType.enumAsInt).parameters["value"].annotation
+ self.assertEqual(objectFullname(argType),
+ "sample.SampleNamespace.SomeClass.PublicScopedEnum")
+
if __name__ == '__main__':
unittest.main()