From: Fred Drake Date: Mon, 3 Dec 2001 16:44:09 +0000 (+0000) Subject: Add a test that makes sure unclosed entity references are handled consitently. X-Git-Tag: v2.2.1c1~595 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=073148c4ef807732eaf42df4b7178cecfa0b58dc;p=thirdparty%2FPython%2Fcpython.git Add a test that makes sure unclosed entity references are handled consitently. --- diff --git a/Lib/test/test_htmlparser.py b/Lib/test/test_htmlparser.py index 85e60e663738..9d60dd8aefeb 100755 --- a/Lib/test/test_htmlparser.py +++ b/Lib/test/test_htmlparser.py @@ -134,6 +134,12 @@ text ("data", "\n"), ]) + def test_unclosed_entityref(self): + self._run_check("&entityref foo", [ + ("entityref", "entityref"), + ("data", " foo"), + ]) + def test_doctype_decl(self): inside = """\ DOCTYPE html [