diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-11-19 20:28:45 +0200 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-11-19 20:28:45 +0200 |
commit | 4a9ee26750aa8cb37b5072b2bb4dd328819febb4 (patch) | |
tree | bc714725cf478795c34bd9f8200a52424a47474b /Lib/test/test_htmlparser.py | |
parent | 5160da1afc07ab759a95d2b863134a88b9318e65 (diff) | |
download | cpython-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.py | 12 |
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('&'),'&') - # see #12888 - self.assertEqual(p.unescape('{ ' * 1050), '{ ' * 1050) - # see #15156 - self.assertEqual(p.unescape('ÉricÉric' - '&alphacentauriα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 -->' |