diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2012-02-15 10:44:23 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2012-02-15 10:44:23 (GMT) |
commit | d2307cb48ab09baa846947c5c2c4001dce9b6e52 (patch) | |
tree | 5667706edf910500c90d351f4114e2b97d1c76df /Lib/test/test_htmlparser.py | |
parent | fd7e4964bbe8dcd750c46aa2a96aeaec97e7ef25 (diff) | |
download | cpython-d2307cb48ab09baa846947c5c2c4001dce9b6e52.zip cpython-d2307cb48ab09baa846947c5c2c4001dce9b6e52.tar.gz cpython-d2307cb48ab09baa846947c5c2c4001dce9b6e52.tar.bz2 |
#13987: HTMLParser is now able to handle EOFs in the middle of a construct.
Diffstat (limited to 'Lib/test/test_htmlparser.py')
-rw-r--r-- | Lib/test/test_htmlparser.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Lib/test/test_htmlparser.py b/Lib/test/test_htmlparser.py index 66675127..ba775ab 100644 --- a/Lib/test/test_htmlparser.py +++ b/Lib/test/test_htmlparser.py @@ -204,16 +204,16 @@ text def test_starttag_junk_chars(self): self._run_check("</>", []) self._run_check("</$>", [('comment', '$')]) - self._parse_error("</") - self._parse_error("</a") + self._run_check("</", [('data', '</')]) + self._run_check("</a", [('data', '</a')]) self._parse_error("<a<a>") self._run_check("</a<a>", [('endtag', 'a<a')]) - self._parse_error("<!") - self._parse_error("<a") - self._parse_error("<a foo='bar'") - self._parse_error("<a foo='bar") - self._parse_error("<a foo='>'") - self._parse_error("<a foo='>") + self._run_check("<!", [('data', '<!')]) + self._run_check("<a", [('data', '<a')]) + self._run_check("<a foo='bar'", [('data', "<a foo='bar'")]) + self._run_check("<a foo='bar", [('data', "<a foo='bar")]) + self._run_check("<a foo='>'", [('data', "<a foo='>'")]) + self._run_check("<a foo='>", [('data', "<a foo='>")]) def test_valid_doctypes(self): # from http://www.w3.org/QA/2002/04/valid-dtd-list.html |