diff options
author | Sam Thursfield <sam@afuera.me.uk> | 2018-07-16 15:06:54 +0200 |
---|---|---|
committer | Sam Thursfield <sam@afuera.me.uk> | 2018-07-16 16:26:32 +0200 |
commit | abd2785aa1320209ac2fb88f88318327e6182529 (patch) | |
tree | a92942679e0a400ea916b369faab66ec4e6187f2 | |
parent | 369dc65484be10c0eda4936347dc90b86f94c494 (diff) | |
download | tracker-abd2785aa1320209ac2fb88f88318327e6182529.tar.gz |
functional-tests/09-concurrent-query.py: Print error on failure
Previously you would get this error on failure:
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/gi/overrides/Gio.py", line 158, in __async_result_handler
error_callback(obj, e, real_user_data)
TypeError: error_handler() takes exactly 1 argument (4 given)
-rwxr-xr-x | tests/functional-tests/09-concurrent-query.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/functional-tests/09-concurrent-query.py b/tests/functional-tests/09-concurrent-query.py index 53352bf01..73cd40077 100755 --- a/tests/functional-tests/09-concurrent-query.py +++ b/tests/functional-tests/09-concurrent-query.py @@ -94,9 +94,9 @@ class TestConcurrentQuery (CommonTrackerStoreTest): def update_cb (self, obj, results, data): self.assertTrue (True) - def error_handler (self): - print "ERROR in DBus call" - self.assertTrue (False) + def error_handler (self, obj, e, user_data): + print "ERROR in DBus call: %s" % e + raise(e) def timeout_cb (self): self.mock_data_delete () |