aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/samplebinding/pointerprimitivetype_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/tests/samplebinding/pointerprimitivetype_test.py')
-rw-r--r--sources/shiboken6/tests/samplebinding/pointerprimitivetype_test.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sources/shiboken6/tests/samplebinding/pointerprimitivetype_test.py b/sources/shiboken6/tests/samplebinding/pointerprimitivetype_test.py
index ad3bd899a..a1ee230ce 100644
--- a/sources/shiboken6/tests/samplebinding/pointerprimitivetype_test.py
+++ b/sources/shiboken6/tests/samplebinding/pointerprimitivetype_test.py
@@ -56,6 +56,8 @@ from sample import IntArray2, VirtualMethods
import shiboken6
_init_pyside_extension() # trigger init, which does not happen in tests
+from shibokensupport.signature import get_signature
+
import typing
@@ -75,7 +77,7 @@ class PointerPrimitiveTypeTest(unittest.TestCase):
def testReturnVarSignature(self):
# signature="getMargins(int*,int*,int*,int*)const">
- ann = VirtualMethods.getMargins.__signature__.return_annotation
+ ann = get_signature(VirtualMethods.getMargins).return_annotation
self.assertEqual(ann, typing.Tuple[int, int, int, int])