bpo-47152: Convert the re module into a package (GH-32177)

The sre_* modules are now deprecated.
This commit is contained in:
Serhiy Storchaka 2022-04-02 11:35:13 +03:00 committed by GitHub
parent 4ed8a9a589
commit 1be3260a90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 2235 additions and 2182 deletions

View file

@ -523,7 +523,7 @@ class StartupImportTests(unittest.TestCase):
self.assertIn('site', modules)
# http://bugs.python.org/issue19205
re_mods = {'re', '_sre', 'sre_compile', 'sre_constants', 'sre_parse'}
re_mods = {'re', '_sre', 're._compiler', 're._constants', 're._parser'}
self.assertFalse(modules.intersection(re_mods), stderr)
# http://bugs.python.org/issue9548