summaryrefslogtreecommitdiffstats
path: root/test/python/test-client.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/python/test-client.py')
-rwxr-xr-xtest/python/test-client.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/python/test-client.py b/test/python/test-client.py
index cb753fb8..433caac9 100755
--- a/test/python/test-client.py
+++ b/test/python/test-client.py
@@ -83,11 +83,14 @@ class TestDBusBindings(unittest.TestCase):
self.test_controler = test_controler
def callback(self, val):
- if self.do_exit:
- main_loop.quit()
+ try:
+ if self.do_exit:
+ main_loop.quit()
+
+ self.test_controler.assertEquals(val, self.expected_result)
+ except Exception, e:
+ print "%s:\n%s" % (e.__class__, e)
- self.test_controler.assertEquals(val, self.expected_result)
-
def error_handler(self, error):
print error
if self.do_exit: