Commit f88af1ca authored by Emmy Vouriot's avatar Emmy Vouriot Committed by Jérome Perrin

remove test because tested feature was removed WIP

parent a85b2613
......@@ -1898,9 +1898,14 @@ document.write('<sc'+'ript type="text/javascript" src="http://somosite.bg/utb.ph
</html>
"""
web_page.edit(text_content=html_content)
if six.PY3:
web_page.asStrippedHTML()
# TODO(emmuvouriot): this test shouldn't exist anymore in Py3 since HTMLParseError has been removed
# The rationale being that the HTML parser never fails (except in strict mode, which is not used here).
else:
from six.moves.html_parser import HTMLParseError
try:
web_page.asStrippedHTML()
web_page.asStrippedHTML() # TODO(emmuvouriot): does this even attempt to parse the code? Can the exception ever be thrown?
except HTMLParseError:
expectedFailure(self.fail)(
'Even BeautifulSoup is not able to parse such HTML')
......
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