summaryrefslogtreecommitdiff
path: root/Lib/test/test_htmlparser.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-11-19 20:28:45 +0200
committerEzio Melotti <ezio.melotti@gmail.com>2013-11-19 20:28:45 +0200
commit4a9ee26750aa8cb37b5072b2bb4dd328819febb4 (patch)
treebc714725cf478795c34bd9f8200a52424a47474b /Lib/test/test_htmlparser.py
parent5160da1afc07ab759a95d2b863134a88b9318e65 (diff)
downloadcpython-git-4a9ee26750aa8cb37b5072b2bb4dd328819febb4.tar.gz
#2927: Added the unescape() function to the html module.
Diffstat (limited to 'Lib/test/test_htmlparser.py')
-rw-r--r--Lib/test/test_htmlparser.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/Lib/test/test_htmlparser.py b/Lib/test/test_htmlparser.py
index 8863316a0f..a943d3a453 100644
--- a/Lib/test/test_htmlparser.py
+++ b/Lib/test/test_htmlparser.py
@@ -569,18 +569,6 @@ class HTMLParserTolerantTestCase(HTMLParserStrictTestCase):
for html, expected in data:
self._run_check(html, expected)
- def test_unescape_function(self):
- p = self.get_collector()
- self.assertEqual(p.unescape('&#bad;'),'&#bad;')
- self.assertEqual(p.unescape('&#0038;'),'&')
- # see #12888
- self.assertEqual(p.unescape('&#123; ' * 1050), '{ ' * 1050)
- # see #15156
- self.assertEqual(p.unescape('&Eacuteric&Eacute;ric'
- '&alphacentauri&alpha;centauri'),
- 'ÉricÉric&alphacentauriαcentauri')
- self.assertEqual(p.unescape('&co;'), '&co;')
-
def test_broken_comments(self):
html = ('<! not really a comment >'
'<! not a comment either -->'