aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtWidgets/qapp_issue_585.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtWidgets/qapp_issue_585.py')
-rw-r--r--sources/pyside6/tests/QtWidgets/qapp_issue_585.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sources/pyside6/tests/QtWidgets/qapp_issue_585.py b/sources/pyside6/tests/QtWidgets/qapp_issue_585.py
index 1b859db53..9e3674374 100644
--- a/sources/pyside6/tests/QtWidgets/qapp_issue_585.py
+++ b/sources/pyside6/tests/QtWidgets/qapp_issue_585.py
@@ -68,9 +68,10 @@ from init_paths import init_test_paths
init_test_paths()
from PySide6.QtCore import QTimer
-from PySide6 import QtWidgets
+from PySide6.QtWidgets import QApplication
-app_instance = QtWidgets.QApplication([])
+
+app_instance = QApplication([])
# If the following line is commented, application doesn't crash on exit anymore.
app_instance2 = app_instance
QTimer.singleShot(0, qApp.quit)