mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
Add a test that makes sure unclosed entity references are handled consitently.
This commit is contained in:
parent
f07125ee53
commit
073148c4ef
1 changed files with 6 additions and 0 deletions
|
@ -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 [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue