aboutsummaryrefslogtreecommitdiffstats
path: root/sources
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-04-27 13:17:37 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-04-28 10:42:50 +0200
commit2298749493084eba1c66546fe3219eab3b1ea1c2 (patch)
tree07f9b8a54f039efa567c0cf0deecad5390013a28 /sources
parent7cd2c319fdc334bc442ed882446a08c7c92f7635 (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)
Diffstat (limited to 'sources')
-rw-r--r--sources/pyside2/tests/QtCore/bug_686.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/pyside2/tests/QtCore/bug_686.py b/sources/pyside2/tests/QtCore/bug_686.py
index 6e4f8994a..d944cafe8 100644
--- a/sources/pyside2/tests/QtCore/bug_686.py
+++ b/sources/pyside2/tests/QtCore/bug_686.py
@@ -49,6 +49,7 @@ class MyWriteThread(QThread):
self.started = True
while not self.lock.tryLockForWrite():
pass
+ self.lock.unlock()
self.canQuit = True
class MyReadThread(QThread):
@@ -62,6 +63,7 @@ class MyReadThread(QThread):
self.started = True
while not self.lock.tryLockForRead():
pass
+ self.lock.unlock()
self.canQuit = True
class MyMutexedThread(QThread):