Commit a14abbc2 authored by Jérome Perrin's avatar Jérome Perrin

tests: fix _updateFunctionalTestResponse on py3

parent 27cfb5eb
......@@ -151,13 +151,13 @@ class ERP5(_ERP5):
"""
# Parse relevant information to update response information
try:
summary, html_test_result = status_dict['stderr'].split("-"*79)[1:3]
summary, html_test_result = status_dict['stderr'].split(b"-"*79)[1:3]
except ValueError:
# In case of error when parse the file, preserve the original
# information. This prevents we have unfinished tests.
return status_dict
status_dict['html_test_result'] = html_test_result
search = self.FTEST_PASS_FAIL_RE.search(summary)
search = self.FTEST_PASS_FAIL_RE.search(summary.decode())
if search:
group_dict = search.groupdict()
status_dict['failure_count'] = int(group_dict['failures']) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment