This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/incubator-ponymail-unit-tests.git
The following commit(s) were added to refs/heads/master by this push:
new 0f16a1d Fix crash
0f16a1d is described below
commit 0f16a1d8d2fd59322aac0fd1f36c7bd15cadbedd
Author: Sebb <[email protected]>
AuthorDate: Fri Aug 14 17:44:10 2020 +0100
Fix crash
---
tests/test-parsing.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test-parsing.py b/tests/test-parsing.py
index 4aeef6f..8c0e8b1 100644
--- a/tests/test-parsing.py
+++ b/tests/test-parsing.py
@@ -73,7 +73,7 @@ def run_tests(args):
if (json['attachments'] if json else None) != test['attachments']:
errors += 1
sys.stderr.write("""[FAIL] index %u:
\nExpected:\n%s\nGot:\n%s\n""" %
- (test['index'], test['attachments'],
json['attachments']))
+ (test['index'], test['attachments'],
json['attachments'] if json else None))
else:
print("[PASS] index %u" % (test['index']))
print("[DONE] %u tests run, %u failed." % (tests_run, errors))