[Python-checkins] CVS: python/dist/src/Lib/test test_htmlparser.py,1.7,1.8
Fred L. Drake
fdrake@users.sourceforge.net
Mon, 03 Dec 2001 08:44:11 -0800
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv30752
Modified Files:
test_htmlparser.py
Log Message:
Add a test that makes sure unclosed entity references are handled consitently.
Index: test_htmlparser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_htmlparser.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** test_htmlparser.py 2001/09/24 20:19:08 1.7
--- test_htmlparser.py 2001/12/03 16:44:09 1.8
***************
*** 135,138 ****
--- 135,144 ----
])
+ def test_unclosed_entityref(self):
+ self._run_check("&entityref foo", [
+ ("entityref", "entityref"),
+ ("data", " foo"),
+ ])
+
def test_doctype_decl(self):
inside = """\