We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b15160f commit 70960b6Copy full SHA for 70960b6
lib/test.py
@@ -341,12 +341,12 @@ def tap_parse_print_yaml(self, yml):
341
342
def check_tap_output(self):
343
""" Returns is_tap, is_ok """
344
- with open(self.tmp_result, 'r') as f:
345
- content = f.read()
346
- tap = pytap13.TAP13()
347
try:
+ with open(self.tmp_result, 'r') as f:
+ content = f.read()
+ tap = pytap13.TAP13()
348
tap.parse(content)
349
- except ValueError as e:
+ except (ValueError, UnicodeDecodeError) as e:
350
color_stdout('\nTAP13 parse failed (%s).\n' % str(e),
351
schema='error')
352
color_stdout('\nNo result file (%s) found.\n' % self.result,
0 commit comments