Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_htmlparser.py @ 61889:bf04eaf1af74
Recorded merge of revisions 81500-81501 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81500 | victor.stinner | 2010-05-24 23:33:24 +0200 (lun., 24 mai 2010) | 2 lines
Issue #6662: Fix parsing of malformatted charref (&#bad;)
........
r81501 | victor.stinner | 2010-05-24 23:37:28 +0200 (lun., 24 mai 2010) | 2 lines
Add the author of the last fix (Issue #6662)
........
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Mon, 24 May 2010 21:46:25 +0000 |
| parents | 7aa9ad658014 |
| children | 3546ce1aa355 1cbfeffea19f |
line wrap: on
line diff
--- a/Lib/test/test_htmlparser.py Mon May 24 21:20:20 2010 +0000 +++ b/Lib/test/test_htmlparser.py Mon May 24 21:46:25 2010 +0000 @@ -136,6 +136,13 @@ ("data", "\n"), ]) + def test_malformatted_charref(self): + self._run_check("<p>&#bad;</p>", [ + ("starttag", "p", []), + ("data", "&#bad;"), + ("endtag", "p"), + ]) + def test_unclosed_entityref(self): self._run_check("&entityref foo", [ ("entityref", "entityref"),
