diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-04-27 13:17:37 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-04-27 15:38:10 +0000 |
commit | 7f346c39f345e7b741ab6d5ce70cb91fd0ff80ad (patch) | |
tree | f71207cfe4b06ca519de08b881ddd6b329fe04a4 | |
parent | 99c606d9d2e70a4107f0a21441aaf57ed364ea60 (diff) |
Test bug_686.py: Fix warning about destroying a locked QReadWriteLock
Unlock in the threads, fixing warnings:
QReadWriteLock: destroying locked QReadWriteLock
QReadWriteLock: destroying locked QReadWriteLock
Change-Id: I484b7947fdcf241fca069c02ecd9e0ff7c20c151
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit 8245dd6356dbb0124a7477b16f19e5f031074f85)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | sources/pyside6/tests/QtCore/bug_686.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/pyside6/tests/QtCore/bug_686.py b/sources/pyside6/tests/QtCore/bug_686.py index 7c36ceb95..c474ff56e 100644 --- a/sources/pyside6/tests/QtCore/bug_686.py +++ b/sources/pyside6/tests/QtCore/bug_686.py @@ -47,6 +47,7 @@ class MyWriteThread(QThread): self.started = True while not self.lock.tryLockForWrite(): pass + self.lock.unlock() self.canQuit = True class MyReadThread(QThread): @@ -60,6 +61,7 @@ class MyReadThread(QThread): self.started = True while not self.lock.tryLockForRead(): pass + self.lock.unlock() self.canQuit = True class MyMutexedThread(QThread): |