summaryrefslogtreecommitdiff
path: root/tests/test_gdbus.py
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2011-07-18 10:45:18 -0400
committerJohn (J5) Palmieri <johnp@redhat.com>2011-07-18 10:45:18 -0400
commit2937cfe5bb7122dd3783c7919294d6a34a3dfc05 (patch)
tree5b74be2f5a4b5ff1b32b9e81d6991db348dc695d /tests/test_gdbus.py
parent519e556dc1e5874e1668bad93043fb9258c7ee79 (diff)
parent917ea2dfa2d097e563233145003a66b3e4423287 (diff)
downloadpygobject-invoke-rewrite.tar.gz
Merge branch 'master' into invoke-rewriteinvoke-rewrite
Diffstat (limited to 'tests/test_gdbus.py')
-rw-r--r--tests/test_gdbus.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_gdbus.py b/tests/test_gdbus.py
index 19fd76dc..b5a8493d 100644
--- a/tests/test_gdbus.py
+++ b/tests/test_gdbus.py
@@ -62,8 +62,10 @@ class TestGDBusClient(unittest.TestCase):
def test_native_calls_async(self):
def call_done(obj, result, user_data):
- user_data['result'] = obj.call_finish(result)
- user_data['main_loop'].quit()
+ try:
+ user_data['result'] = obj.call_finish(result)
+ finally:
+ user_data['main_loop'].quit()
main_loop = gobject.MainLoop()
data = {'main_loop': main_loop}