mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-37328: remove deprecated HTMLParser.unescape (GH-14186)
It is deprecated since Python 3.4.
This commit is contained in:
parent
9a943b4ce1
commit
fae0ed5099
3 changed files with 2 additions and 15 deletions
|
@ -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 = '""""""&#bad;'
|
||||
self.assertEqual(p.unescape(s), unescape(s))
|
||||
|
||||
def test_broken_comments(self):
|
||||
html = ('<! not really a comment >'
|
||||
'<! not a comment either -->'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue