Commit 7bb75cc5 authored by Elliott Sales de Andrade's avatar Elliott Sales de Andrade Committed by Albert Astals Cid

regtest: Fix file opened in wrong mode.

parent d02d1a1e
......@@ -331,9 +331,8 @@ class HTMLReport:
html += failed + crashed + failed_to_run + "</body></html>"
report_index = os.path.join(self._htmldir, 'index.html')
f = open(report_index, 'wb')
f.write(html)
f.close()
with open(report_index, 'w') as f:
f.write(html)
if launch_browser:
subprocess.Popen(['xdg-open', report_index])
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