aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/smartbinding/std_shared_ptr_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/tests/smartbinding/std_shared_ptr_test.py')
-rw-r--r--sources/shiboken6/tests/smartbinding/std_shared_ptr_test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/shiboken6/tests/smartbinding/std_shared_ptr_test.py b/sources/shiboken6/tests/smartbinding/std_shared_ptr_test.py
index b4b9808c6..2e6aea3d9 100644
--- a/sources/shiboken6/tests/smartbinding/std_shared_ptr_test.py
+++ b/sources/shiboken6/tests/smartbinding/std_shared_ptr_test.py
@@ -2,7 +2,6 @@
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
-import gc
import os
import sys
import unittest
@@ -28,6 +27,8 @@ class VirtualTester(StdSharedPtrVirtualMethodTester):
class StdSharedPtrTests(unittest.TestCase):
def testInteger(self):
p = StdSharedPtrTestBench.createInteger()
+ # PYSIDE-2462: Ensure Integer's __dir__ entries in the pointer's
+ self.assertTrue("printInteger" in dir(p))
StdSharedPtrTestBench.printInteger(p)
self.assertTrue(p)
call_func_on_ptr(p)