bpo-43720: Update import-related stdlib deprecation messages to say they will be removed in Python 3.12 (GH-25167)

This commit is contained in:
Brett Cannon 2021-04-03 15:31:15 -07:00 committed by GitHub
parent c5354c045c
commit dc6d3e1e4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 16 additions and 7 deletions

View file

@ -498,7 +498,8 @@ class ImportlibMigrationTests(unittest.TestCase):
def check_deprecated(self):
return check_warnings(
("This emulation is deprecated, use 'importlib' instead",
("This emulation is deprecated and slated for removal in "
"Python 3.12; use 'importlib' instead",
DeprecationWarning))
def test_importer_deprecated(self):