summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_htmlparser.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-09-05 14:15:32 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2011-09-05 14:15:32 (GMT)
commit6a8c8a80a1c47595652a267665bdbae2bd8489f0 (patch)
tree7def15cc73cc0f135a337b186088dca4d7dcfd28 /Lib/test/test_htmlparser.py
parent2c2d2aedd5c48a5fbbbb4a238b7d4e86a5f64b60 (diff)
parentd9e0b068af175a2fc1c2fe979ab97b5d4f8239b7 (diff)
downloadcpython-6a8c8a80a1c47595652a267665bdbae2bd8489f0.zip
cpython-6a8c8a80a1c47595652a267665bdbae2bd8489f0.tar.gz
cpython-6a8c8a80a1c47595652a267665bdbae2bd8489f0.tar.bz2
#12888: merge with 3.2.
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)