summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_htmlparser.py
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2019-08-27 02:48:06 (GMT)
committerGitHub <noreply@github.com>2019-08-27 02:48:06 (GMT)
commitfae0ed5099de594a9204071d555cb8b76368cbf4 (patch)
treed435837fb1b7f1fd76a84a1ba56592cc2873b809 /Lib/test/test_htmlparser.py
parent9a943b4ce13fac26873b8100e89c818c5c47ac4b (diff)
downloadcpython-fae0ed5099de594a9204071d555cb8b76368cbf4.zip
cpython-fae0ed5099de594a9204071d555cb8b76368cbf4.tar.gz
cpython-fae0ed5099de594a9204071d555cb8b76368cbf4.tar.bz2
bpo-37328: remove deprecated HTMLParser.unescape (GH-14186)
It is deprecated since Python 3.4.
Diffstat (limited to 'Lib/test/test_htmlparser.py')
-rw-r--r--Lib/test/test_htmlparser.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/test/test_htmlparser.py b/Lib/test/test_htmlparser.py
index 326e342..a2bfb39 100644
--- a/Lib/test/test_htmlparser.py
+++ b/Lib/test/test_htmlparser.py
@@ -573,13 +573,6 @@ text
for html, expected in data:
self._run_check(html, expected)
- def test_unescape_method(self):
- from html import unescape
- p = self.get_collector()
- with self.assertWarns(DeprecationWarning):
- s = '&quot;&#34;&#x22;&quot&#34&#x22&#bad;'
- self.assertEqual(p.unescape(s), unescape(s))
-
def test_broken_comments(self):
html = ('<! not really a comment >'
'<! not a comment either -->'