summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_htmlparser.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2012-02-15 11:19:10 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2012-02-15 11:19:10 (GMT)
commit65d36dab4d915eb9fada52b867301b546e840fae (patch)
tree62d6c6eaf8063e7c1bb263f7e2947c7cdfcbe3b4 /Lib/test/test_htmlparser.py
parentd2307cb48ab09baa846947c5c2c4001dce9b6e52 (diff)
downloadcpython-65d36dab4d915eb9fada52b867301b546e840fae.zip
cpython-65d36dab4d915eb9fada52b867301b546e840fae.tar.gz
cpython-65d36dab4d915eb9fada52b867301b546e840fae.tar.bz2
#13987: HTMLParser is now able to handle malformed start tags.
Diffstat (limited to 'Lib/test/test_htmlparser.py')
-rw-r--r--Lib/test/test_htmlparser.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_htmlparser.py b/Lib/test/test_htmlparser.py
index ba775ab..8136bca 100644
--- a/Lib/test/test_htmlparser.py
+++ b/Lib/test/test_htmlparser.py
@@ -206,7 +206,8 @@ text
self._run_check("</$>", [('comment', '$')])
self._run_check("</", [('data', '</')])
self._run_check("</a", [('data', '</a')])
- self._parse_error("<a<a>")
+ # XXX this might be wrong
+ self._run_check("<a<a>", [('data', '<a'), ('starttag', 'a', [])])
self._run_check("</a<a>", [('endtag', 'a<a')])
self._run_check("<!", [('data', '<!')])
self._run_check("<a", [('data', '<a')])