summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/gsdtestcase.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gsdtestcase.py b/tests/gsdtestcase.py
index c2bedf8d..3d2485f6 100644
--- a/tests/gsdtestcase.py
+++ b/tests/gsdtestcase.py
@@ -93,9 +93,9 @@ class GSDTestCase(dbusmock.DBusTestCase):
shows all log files.
'''
if result:
- orig_err_fail = result.errors + result.failures
+ orig_err_fail = len(result.errors) + len(result.failures)
super(GSDTestCase, self).run(result)
- if result and result.errors + result.failures > orig_err_fail:
+ if result and len(result.errors) + len(result.failures) > orig_err_fail:
if 'SHELL_ON_FAIL' in os.environ:
subprocess.call(['bash', '-i'], cwd=self.workdir)
else: