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 ae75b54  One line per test failure
ae75b54 is described below

commit ae75b542044b1b15da5f933f0aadeca1182c25c3
Author: Sebb <[email protected]>
AuthorDate: Sat Aug 15 17:49:55 2020 +0100

    One line per test failure
---
 tests/test-parsing.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/test-parsing.py b/tests/test-parsing.py
index 73d36fe..dda60c2 100644
--- a/tests/test-parsing.py
+++ b/tests/test-parsing.py
@@ -100,13 +100,13 @@ def run_tests(args):
                 body_sha3_256 = 
hashlib.sha3_256(json['body'].encode('utf-8')).hexdigest()
             if body_sha3_256 != test['body_sha3_256']:
                 errors += 1
-                sys.stderr.write("""[FAIL] index %u: 
\nExpected:\n%s\nGot:\n%s\n""" %
+                sys.stderr.write("""[FAIL] parsing index %2u: Expected: %s 
Got: %s\n""" %
                                  (test['index'], test['body_sha3_256'], 
body_sha3_256))
             att = json['attachments'] if json else []
             att_expected = test['attachments'] or []
             if att != att_expected:
                 errors += 1
-                sys.stderr.write("""[FAIL] index %u: 
\nExpected:\n%s\nGot:\n%s\n""" %
+                sys.stderr.write("""[FAIL] attachments index %2u: Expected: %s 
Got: %s\n""" %
                                  (test['index'], att_expected, att))
             else:
                 print("[PASS] index %u" % (test['index']))

Reply via email to