diff options
author | Renato Araujo Oliveira Filho <renato.filho@openbossa.org> | 2010-11-17 19:43:33 -0300 |
---|---|---|
committer | Renato Araujo Oliveira Filho <renato.filho@openbossa.org> | 2010-11-19 15:14:48 -0300 |
commit | 43e499a4faf7c7cacdba026bc87eda24a7d02e23 (patch) | |
tree | 969b664f47abe89e67b9ec4f40cc2db26fc419ca /tests | |
parent | dd8b0fcfe41222be0141e2b717bb6f6b4c6f7107 (diff) |
Fixed unit test to avoid exit with thread running.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/QtCore/bug_462.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/QtCore/bug_462.py b/tests/QtCore/bug_462.py index feb75c7e1..44048bb85 100644 --- a/tests/QtCore/bug_462.py +++ b/tests/QtCore/bug_462.py @@ -28,6 +28,7 @@ class MyBaseObject(QObject): def customEvent(self, event): self.events.append(event) if len(self.events) == 3: + self.t.wait() self.app.quit() @@ -38,6 +39,7 @@ class CheckForEventsTypes(unittest.TestCase): o.app.exec_() for e in o.events: self.assert_(isinstance(e, MyEvent)) + o.app = None if __name__ == '__main__': unittest.main() |