aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtCore
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-11-16 13:12:21 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2010-11-16 14:58:30 -0200
commitbd3efd2a0f39c7f0ec7be88672e30c332ac1d1fe (patch)
treef902a61bcb6e4cfdecbf772ebe8c3f6207e52388 /tests/QtCore
parentd2e204f3df1c80112cf42bb117db81299f93f8cf (diff)
Fix bug#471 - "QtCore.QObject is missing 'thread' method"
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
Diffstat (limited to 'tests/QtCore')
-rw-r--r--tests/QtCore/qthread_test.py2
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__':