aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/samplebinding/namespace_test.py
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-11-01 15:07:54 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2022-10-21 12:11:14 +0200
commit7e28e32932b1997d52dc732d515bece324e3e1b9 (patch)
tree9b09ba0486d5041d3944ca225b093cdc2f774e87 /sources/shiboken6/tests/samplebinding/namespace_test.py
parentb65bf9dc8f121463242eebaca19a96b6a6c3c3ef (diff)
shiboken6: Add tests for inline namespaces
Task-number: PYSIDE-990 Change-Id: I4b8d75de9ed4cb15f4784828d64713246964ed21 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'sources/shiboken6/tests/samplebinding/namespace_test.py')
-rw-r--r--sources/shiboken6/tests/samplebinding/namespace_test.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/samplebinding/namespace_test.py b/sources/shiboken6/tests/samplebinding/namespace_test.py
index 3238473a0..2087ced4b 100644
--- a/sources/shiboken6/tests/samplebinding/namespace_test.py
+++ b/sources/shiboken6/tests/samplebinding/namespace_test.py
@@ -64,5 +64,11 @@ class TestClassesUnderNamespace(unittest.TestCase):
"sample.SampleNamespace.SomeClass.PublicScopedEnum")
+ def testInlineNamespaces(self):
+ cls = SampleNamespace.ClassWithinInlineNamespace()
+ cls.setValue(SampleNamespace.EWIN_Value1)
+ self.assertEqual(cls.value(), SampleNamespace.EWIN_Value1)
+
+
if __name__ == '__main__':
unittest.main()