allow run_tests.py to pass under python 2.6

pull/5427/head
Jan Tattermusch 9 years ago
parent 006443c127
commit 60ab05ac21
  1. 2
      tools/run_tests/report_utils.py

@ -47,7 +47,7 @@ def _filter_msg(msg, output_format):
# that make XML report unparseable.
filtered_msg = filter(
lambda x: x in string.printable and x != '\f' and x != '\v',
msg.decode(errors='ignore'))
msg.decode('UTF-8', 'ignore'))
if output_format == 'HTML':
filtered_msg = filtered_msg.replace('"', '"')
return filtered_msg

Loading…
Cancel
Save