summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_htmlparser.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-09-06 11:57:26 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-09-06 11:57:26 (GMT)
commit7f5556095eed7383e98c24766aa302c5e473abc1 (patch)
tree62ef86cf5bd5c70dc8a48aa56f6066007529b656 /Lib/test/test_htmlparser.py
parentf22913b8c39f1053c291c96cf3016cabad60bbd4 (diff)
parentd88d9836c541258a46acb153cd488de2a04b60db (diff)
downloadcpython-7f5556095eed7383e98c24766aa302c5e473abc1.zip
cpython-7f5556095eed7383e98c24766aa302c5e473abc1.tar.gz
cpython-7f5556095eed7383e98c24766aa302c5e473abc1.tar.bz2
merge heads
Diffstat (limited to 'Lib/test/test_htmlparser.py')
-rw-r--r--Lib/test/test_htmlparser.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_htmlparser.py b/Lib/test/test_htmlparser.py
index 637ab01..d45e453 100644
--- a/Lib/test/test_htmlparser.py
+++ b/Lib/test/test_htmlparser.py
@@ -377,7 +377,8 @@ class HTMLParserTolerantTestCase(TestCaseBase):
p = html.parser.HTMLParser()
self.assertEqual(p.unescape('&#bad;'),'&#bad;')
self.assertEqual(p.unescape('&#0038;'),'&')
-
+ # see #12888
+ self.assertEqual(p.unescape('&#123; ' * 1050), '{ ' * 1050)
def test_main():
support.run_unittest(HTMLParserTestCase, HTMLParserTolerantTestCase)