aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtCore/bug_278_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtCore/bug_278_test.py')
-rw-r--r--sources/pyside6/tests/QtCore/bug_278_test.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sources/pyside6/tests/QtCore/bug_278_test.py b/sources/pyside6/tests/QtCore/bug_278_test.py
index aadaaf4d9..f4ce190b8 100644
--- a/sources/pyside6/tests/QtCore/bug_278_test.py
+++ b/sources/pyside6/tests/QtCore/bug_278_test.py
@@ -37,7 +37,8 @@ sys.path.append(os.fspath(Path(__file__).resolve().parents[1]))
from init_paths import init_test_paths
init_test_paths(False)
-from PySide6 import QtCore
+from PySide6.QtCore import QObject
+
def setValue(o):
values = ['Name']
@@ -47,7 +48,7 @@ class QQtVersionTest(unittest.TestCase):
'''Tests for QVariant conversion of QStringList'''
def testGet(self):
- o = QtCore.QObject()
+ o = QObject()
setValue(o)
self.assertEqual(o.property('test1'), ['Name'])