Commit 3ec1f882 authored by Jérome Perrin's avatar Jérome Perrin

ERP5TypeFunctionalTestCase: fix decoding of HTML

If we use bytes in html parser, it will assume the encoding is latin1,
by passing str (unicode on python2), the parser does not need to deal
with encoding. This fixes a case of Jérome being decoded as Jérome
parent a3a1f72d
...@@ -360,8 +360,8 @@ class FunctionalTestRunner: ...@@ -360,8 +360,8 @@ class FunctionalTestRunner:
iframe = etree.fromstring( iframe = etree.fromstring(
browser.execute_script( browser.execute_script(
"return document.getElementById('testSuiteFrame').contentDocument.querySelector('html').innerHTML" "return document.getElementById('testSuiteFrame').contentDocument.querySelector('html').innerHTML"
).encode('UTF-8'), ),
html_parser html_parser
) )
return iframe return iframe
......
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