From 8245dd6356dbb0124a7477b16f19e5f031074f85 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 27 Apr 2021 13:17:37 +0200 Subject: 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 --- sources/pyside6/tests/QtCore/bug_686.py | 2 ++ 1 file changed, 2 insertions(+) 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): -- cgit v1.2.3