Skip to content

Commit 3f46b22

Browse files
Merge pull request #1246 from sebastiangrimberg/sjg/minor-junit-fix
Fix a few missing default output/messages for junit/tap
2 parents 7ade40a + 18f23d8 commit 3f46b22

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/junit.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,13 @@ def run(test, backends, mode):
183183
print('# $ {}'.format(test_case.args))
184184
if test_case.is_error():
185185
print('not ok {} - ERROR: {}'.format(index, (test_case.errors[0]['message'] or "NO MESSAGE").strip()))
186-
print('Output: \n{}'.format(test_case.errors[0]['output'].strip()))
186+
print('Output: \n{}'.format((test_case.errors[0]['output'] or "NO OUTPUT").strip()))
187187
if test_case.is_failure():
188188
print(' FAIL: {}'.format(index, (test_case.failures[0]['message'] or "NO MESSAGE").strip()))
189-
print('Output: \n{}'.format(test_case.failures[0]['output'].strip()))
189+
print('Output: \n{}'.format((test_case.failures[0]['output'] or "NO OUTPUT").strip()))
190190
elif test_case.is_failure():
191191
print('not ok {} - FAIL: {}'.format(index, (test_case.failures[0]['message'] or "NO MESSAGE").strip()))
192-
print('Output: \n{}'.format(test_case.failures[0]['output'].strip()))
192+
print('Output: \n{}'.format((test_case.failures[0]['output'] or "NO OUTPUT").strip()))
193193
elif test_case.is_skipped():
194194
print('ok {} - SKIP: {}'.format(index, (test_case.skipped[0]['message'] or "NO MESSAGE").strip()))
195195
else:

0 commit comments

Comments
 (0)