diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-04-27 13:17:37 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-04-27 15:30:14 +0200 |
commit | 8245dd6356dbb0124a7477b16f19e5f031074f85 (patch) | |
tree | 01c62938669f20007c4f9d1105e907d017ae5c79 /sources | |
parent | 04cc9e12f38aa4dcf2b33524f1775bf2b659ca5f (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
Pick-to: 6.0 5.15
Change-Id: I484b7947fdcf241fca069c02ecd9e0ff7c20c151
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources')
-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 b5494f7dd..dd1e4820f 100644 --- a/sources/pyside6/tests/QtCore/bug_686.py +++ b/sources/pyside6/tests/QtCore/bug_686.py @@ -50,6 +50,7 @@ class MyWriteThread(QThread): self.started = True while not self.lock.tryLockForWrite(): pass + self.lock.unlock() self.canQuit = True class MyReadThread(QThread): @@ -63,6 +64,7 @@ class MyReadThread(QThread): self.started = True while not self.lock.tryLockForRead(): pass + self.lock.unlock() self.canQuit = True class MyMutexedThread(QThread): |