diff options
Diffstat (limited to 'sources/pyside6/tests/QtWidgets/python_properties_test.py')
| -rw-r--r-- | sources/pyside6/tests/QtWidgets/python_properties_test.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sources/pyside6/tests/QtWidgets/python_properties_test.py b/sources/pyside6/tests/QtWidgets/python_properties_test.py index c12052315..4c90dce28 100644 --- a/sources/pyside6/tests/QtWidgets/python_properties_test.py +++ b/sources/pyside6/tests/QtWidgets/python_properties_test.py @@ -35,16 +35,18 @@ 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, QtWidgets +from PySide6.QtCore import QLocale +from PySide6.QtWidgets import QGraphicsItem, QStyleOptionViewItem + class Properties(unittest.TestCase): def testStaticProperty(self): - self.assertEqual(QtWidgets.QGraphicsItem.UserType, 65536) + self.assertEqual(QGraphicsItem.UserType, 65536) def testInstanceProperty(self): - p = QtWidgets.QStyleOptionViewItem() - self.assertTrue(isinstance(p.locale, QtCore.QLocale)) + p = QStyleOptionViewItem() + self.assertTrue(isinstance(p.locale, QLocale)) # PSYIDE-304, can assign to a "const QWidget *" field p.widget = None |
