mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +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"),
|
("data", "\n"),
|
||||||
])
|
])
|
||||||
|
|
||||||
|
def test_unclosed_entityref(self):
|
||||||
|
self._run_check("&entityref foo", [
|
||||||
|
("entityref", "entityref"),
|
||||||
|
("data", " foo"),
|
||||||
|
])
|
||||||
|
|
||||||
def test_doctype_decl(self):
|
def test_doctype_decl(self):
|
||||||
inside = """\
|
inside = """\
|
||||||
DOCTYPE html [
|
DOCTYPE html [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue