From 073148c4ef807732eaf42df4b7178cecfa0b58dc Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Mon, 3 Dec 2001 16:44:09 +0000 Subject: Add a test that makes sure unclosed entity references are handled consitently. --- Lib/test/test_htmlparser.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Lib/test/test_htmlparser.py b/Lib/test/test_htmlparser.py index 85e60e6..9d60dd8 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 [ -- cgit v0.12