mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-118827: Remove Quoter
from urllib.parse
(#118828)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
parent
52586f930f
commit
84c3191954
4 changed files with 10 additions and 15 deletions
|
@ -1507,13 +1507,6 @@ class Utility_Tests(unittest.TestCase):
|
|||
|
||||
|
||||
class DeprecationTest(unittest.TestCase):
|
||||
|
||||
def test_Quoter_deprecation(self):
|
||||
with self.assertWarns(DeprecationWarning) as cm:
|
||||
old_class = urllib.parse.Quoter
|
||||
self.assertIs(old_class, urllib.parse._Quoter)
|
||||
self.assertIn('Quoter will be removed', str(cm.warning))
|
||||
|
||||
def test_splittype_deprecation(self):
|
||||
with self.assertWarns(DeprecationWarning) as cm:
|
||||
urllib.parse.splittype('')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue