aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtUiTools/bug_376.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtUiTools/bug_376.py')
-rw-r--r--sources/pyside6/tests/QtUiTools/bug_376.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/sources/pyside6/tests/QtUiTools/bug_376.py b/sources/pyside6/tests/QtUiTools/bug_376.py
index 05948118f..68138731c 100644
--- a/sources/pyside6/tests/QtUiTools/bug_376.py
+++ b/sources/pyside6/tests/QtUiTools/bug_376.py
@@ -37,17 +37,18 @@ init_test_paths(False)
from helper.usesqapplication import UsesQApplication
-from PySide6 import QtCore, QtWidgets
+from PySide6.QtWidgets import QFrame, QWidget
from PySide6.QtUiTools import QUiLoader
+
class BugTest(UsesQApplication):
def testCase(self):
- w = QtWidgets.QWidget()
+ w = QWidget()
loader = QUiLoader()
filePath = os.path.join(os.path.dirname(__file__), 'test.ui')
result = loader.load(filePath, w)
- self.assertTrue(isinstance(result.child_object, QtWidgets.QFrame))
+ self.assertTrue(isinstance(result.child_object, QFrame))
if __name__ == '__main__':
unittest.main()