aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests/QtCore/bug_686.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside2/tests/QtCore/bug_686.py')
-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):