diff options
author | Yann Leboulanger <yann@leboulanger.org> | 2017-09-15 16:11:55 +0300 |
---|---|---|
committer | Yann Leboulanger <yann@leboulanger.org> | 2017-09-15 16:11:55 +0300 |
commit | 5c0538a202d3750686bd50d8d66c84637c28ec3b (patch) | |
tree | da327d852bafbd23279885935e62383463c97c77 /test/integration | |
parent | ef75e93c707609997d757d96ad79db0bfdc96ea3 (diff) |
Fix running make test
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/test_roster.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/integration/test_roster.py b/test/integration/test_roster.py index 3b5859d65..02ee7fe15 100644 --- a/test/integration/test_roster.py +++ b/test/integration/test_roster.py @@ -35,6 +35,14 @@ class TestRosterWindow(unittest.TestCase): app.connections[acc] = MockConnection(acc) app.contacts.add_account(acc) + def tearDown(self): + self.roster.window.destroy() + # Clean main loop + from gi.repository import GLib + mc = GLib.main_context_default() + while mc.pending(): + mc.iteration() + ### Custom assertions def assert_all_contacts_are_in_roster(self, acc): for jid in contacts[acc]: |