aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/samplebinding/enumfromremovednamespace_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/tests/samplebinding/enumfromremovednamespace_test.py')
-rw-r--r--sources/shiboken6/tests/samplebinding/enumfromremovednamespace_test.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/sources/shiboken6/tests/samplebinding/enumfromremovednamespace_test.py b/sources/shiboken6/tests/samplebinding/enumfromremovednamespace_test.py
index 72705c4c4..f9cbdf20d 100644
--- a/sources/shiboken6/tests/samplebinding/enumfromremovednamespace_test.py
+++ b/sources/shiboken6/tests/samplebinding/enumfromremovednamespace_test.py
@@ -41,6 +41,11 @@ init_paths()
import sample
from shiboken_test_helper import objectFullname
+from shiboken6 import Shiboken
+_init_pyside_extension() # trigger bootstrap
+
+from shibokensupport.signature import get_signature
+
class TestEnumFromRemovedNamespace(unittest.TestCase):
def testEnumPromotedToGlobal(self):
@@ -59,10 +64,10 @@ class TestEnumFromRemovedNamespace(unittest.TestCase):
"sample.ObjectOnInvisibleNamespace")
# Function arguments
- signature = sample.ObjectOnInvisibleNamespace.toInt.__signature__
+ signature = get_signature(sample.ObjectOnInvisibleNamespace.toInt)
self.assertEqual(objectFullname(signature.parameters['e'].annotation),
"sample.RemovedNamespace1_Enum")
- signature = sample.ObjectOnInvisibleNamespace.consume.__signature__
+ signature = get_signature(sample.ObjectOnInvisibleNamespace.consume)
self.assertEqual(objectFullname(signature.parameters['other'].annotation),
"sample.ObjectOnInvisibleNamespace")