aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtCore/bug_686.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtCore/bug_686.py')
-rw-r--r--sources/pyside6/tests/QtCore/bug_686.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/pyside6/tests/QtCore/bug_686.py b/sources/pyside6/tests/QtCore/bug_686.py
index ff9a64d50..e4c027ee1 100644
--- a/sources/pyside6/tests/QtCore/bug_686.py
+++ b/sources/pyside6/tests/QtCore/bug_686.py
@@ -53,6 +53,7 @@ class MyWriteThread(QThread):
self.lock.unlock()
self.canQuit = True
+
class MyReadThread(QThread):
def __init__(self, lock):
super().__init__()
@@ -67,6 +68,7 @@ class MyReadThread(QThread):
self.lock.unlock()
self.canQuit = True
+
class MyMutexedThread(QThread):
def __init__(self, mutex):
super().__init__()
@@ -81,6 +83,7 @@ class MyMutexedThread(QThread):
self.mutex.unlock()
self.canQuit = True
+
class TestQMutex (unittest.TestCase):
def testReadLocker(self):
@@ -122,5 +125,6 @@ class TestQMutex (unittest.TestCase):
thread.wait(2000)
self.assertTrue(thread.canQuit)
+
if __name__ == '__main__':
unittest.main()