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

remove test because tested feature was removed WIP

parent b1d219c9
...@@ -1901,9 +1901,14 @@ document.write('<sc'+'ript type="text/javascript" src="http://somosite.bg/utb.ph ...@@ -1901,9 +1901,14 @@ document.write('<sc'+'ript type="text/javascript" src="http://somosite.bg/utb.ph
</html> </html>
""" """
web_page.edit(text_content=html_content) 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 from six.moves.html_parser import HTMLParseError
try: 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: except HTMLParseError:
expectedFailure(self.fail)( expectedFailure(self.fail)(
'Even BeautifulSoup is not able to parse such HTML') '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