diff options
-rw-r--r-- | sources/pyside6/tests/QtCore/bug_927.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sources/pyside6/tests/QtCore/bug_927.py b/sources/pyside6/tests/QtCore/bug_927.py index 1a9617481..5a513b83a 100644 --- a/sources/pyside6/tests/QtCore/bug_927.py +++ b/sources/pyside6/tests/QtCore/bug_927.py @@ -36,14 +36,12 @@ sys.path.append(os.fspath(Path(__file__).resolve().parents[1])) from init_paths import init_test_paths init_test_paths(False) -from PySide6.QtCore import QTime, QRunnable, QThreadPool +from PySide6.QtCore import QRunnable, QThread, QThreadPool class Task(QRunnable): def run(self): - t = QTime() - t.start() - time.sleep(2) # Sleep 2 seconds + QThread.sleep(2) # Sleep 2 seconds class QThreadPoolTest(unittest.TestCase): |