diff options
author | John (J5) Palmieri <johnp@redhat.com> | 2011-07-18 10:45:18 -0400 |
---|---|---|
committer | John (J5) Palmieri <johnp@redhat.com> | 2011-07-18 10:45:18 -0400 |
commit | 2937cfe5bb7122dd3783c7919294d6a34a3dfc05 (patch) | |
tree | 5b74be2f5a4b5ff1b32b9e81d6991db348dc695d /tests/test_gdbus.py | |
parent | 519e556dc1e5874e1668bad93043fb9258c7ee79 (diff) | |
parent | 917ea2dfa2d097e563233145003a66b3e4423287 (diff) | |
download | pygobject-invoke-rewrite.tar.gz |
Merge branch 'master' into invoke-rewriteinvoke-rewrite
Diffstat (limited to 'tests/test_gdbus.py')
-rw-r--r-- | tests/test_gdbus.py | 6 |
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} |