summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_htmlparser.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2014-02-01 19:22:26 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2014-02-01 19:22:26 (GMT)
commit153d97b24e7253f344860094eb2c98ed93657720 (patch)
tree9256d843a13b443631941b250ee4362fbbcb2ab8 /Lib/test/test_htmlparser.py
parent145dff856713d5db6984e2cd888f5f2e5a9904bc (diff)
parentf27b9a741ac7771aa1f6c1219d86a61222fdc20a (diff)
downloadcpython-153d97b24e7253f344860094eb2c98ed93657720.zip
cpython-153d97b24e7253f344860094eb2c98ed93657720.tar.gz
cpython-153d97b24e7253f344860094eb2c98ed93657720.tar.bz2
#20288: merge with 3.3.
Diffstat (limited to 'Lib/test/test_htmlparser.py')
-rw-r--r--Lib/test/test_htmlparser.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_htmlparser.py b/Lib/test/test_htmlparser.py
index 1a480c8..2d771a2 100644
--- a/Lib/test/test_htmlparser.py
+++ b/Lib/test/test_htmlparser.py
@@ -167,6 +167,12 @@ text
("data", "&#bad;"),
("endtag", "p"),
])
+ # add the [] as a workaround to avoid buffering (see #20288)
+ self._run_check(["<div>&#bad;</div>"], [
+ ("starttag", "div", []),
+ ("data", "&#bad;"),
+ ("endtag", "div"),
+ ])
def test_unclosed_entityref(self):
self._run_check("&entityref foo", [