diff options
Diffstat (limited to 'tests/QtCore/qthread_test.py')
-rw-r--r-- | tests/QtCore/qthread_test.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/QtCore/qthread_test.py b/tests/QtCore/qthread_test.py index 410afb908..dc99c8e6c 100644 --- a/tests/QtCore/qthread_test.py +++ b/tests/QtCore/qthread_test.py @@ -17,6 +17,7 @@ class Dummy(QThread): def run(self): #Start-quit sequence + self.qobj = QObject() mutex.lock() self.called = True mutex.unlock() @@ -70,6 +71,7 @@ class QThreadSimpleCase(UsesQCoreApplication): QTimer.singleShot(1000, self.abort_application) self.app.exec_() + self.assertEqual(obj.qobj.thread(), obj) # test QObject.thread() method self.assert_(self.called) if __name__ == '__main__': |