aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/signals/signal_across_threads.py
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2021-05-16 12:24:00 +0200
committerChristian Tismer <tismer@stackless.com>2023-03-16 17:32:29 +0100
commitf668df2e26803989a4d4730ae219767bc9f229a9 (patch)
tree3da8c28021ec65c4d0e359302d93975ccc5ec6ad /sources/pyside6/tests/signals/signal_across_threads.py
parent6d6f614fdd7510a1b8a00a51bb6232a3d151523b (diff)
testing: modernize UsesQApplication and remove other versions
The last change to UsesQApplication can be generalized to be able to remove the QtCore and QtGui versions. Instead, the module and class to use are computed from the content of sys.modules . Task-number: PYSIDE-1564 Change-Id: Iac1fe3a2d6bb5a9f7638eb889f55b079cb55c272 Pick-to: 6.4 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside6/tests/signals/signal_across_threads.py')
-rw-r--r--sources/pyside6/tests/signals/signal_across_threads.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/sources/pyside6/tests/signals/signal_across_threads.py b/sources/pyside6/tests/signals/signal_across_threads.py
index ad4b806ed..91b1ca986 100644
--- a/sources/pyside6/tests/signals/signal_across_threads.py
+++ b/sources/pyside6/tests/signals/signal_across_threads.py
@@ -14,7 +14,7 @@ from init_paths import init_test_paths
init_test_paths(False)
from PySide6.QtCore import QObject, QThread, QTimer, Slot
-from helper.usesqcoreapplication import UsesQCoreApplication
+from helper.usesqapplication import UsesQApplication
class ReceiverBase(QObject):
@@ -39,9 +39,9 @@ class TestThread(QThread):
pass
-class SignalAcrossThreads(UsesQCoreApplication):
+class SignalAcrossThreads(UsesQApplication):
def setUp(self):
- UsesQCoreApplication.setUp(self)
+ UsesQApplication.setUp(self)
self._timer_tick = 0
self._timer = QTimer()
self._timer.setInterval(20)
@@ -49,7 +49,7 @@ class SignalAcrossThreads(UsesQCoreApplication):
self._worker_thread = TestThread()
def tearDown(self):
- UsesQCoreApplication.tearDown(self)
+ UsesQApplication.tearDown(self)
@Slot()
def _control_test(self):