aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtCore/bug_515.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtCore/bug_515.py')
-rw-r--r--sources/pyside6/tests/QtCore/bug_515.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/sources/pyside6/tests/QtCore/bug_515.py b/sources/pyside6/tests/QtCore/bug_515.py
index 5a5264486..917357f88 100644
--- a/sources/pyside6/tests/QtCore/bug_515.py
+++ b/sources/pyside6/tests/QtCore/bug_515.py
@@ -38,7 +38,8 @@ sys.path.append(os.fspath(Path(__file__).resolve().parents[1] / "util"))
from init_paths import init_test_paths
init_test_paths()
-from PySide6 import QtCore
+from PySide6.QtCore import QCoreApplication, qAddPostRoutine
+
callCleanup = False
def _cleanup():
@@ -49,7 +50,7 @@ def _checkCleanup():
global callCleanup
assert(callCleanup)
-app = QtCore.QCoreApplication([])
-QtCore.qAddPostRoutine(_cleanup)
-QtCore.qAddPostRoutine(_checkCleanup)
+app = QCoreApplication([])
+qAddPostRoutine(_cleanup)
+qAddPostRoutine(_checkCleanup)
del app