bpo-42955: Rename module_names to sys.stdlib_module_names (GH-24332)

* Rename _Py_module_names to _Py_stdlib_module_names.
* Rename Python/module_names.h to Python/stdlib_module_names.h.
This commit is contained in:
Victor Stinner 2021-01-25 23:12:50 +01:00 committed by GitHub
parent 501d4a51e3
commit 9852cb3811
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 61 additions and 60 deletions

View file

@ -987,8 +987,8 @@ class SysModuleTest(unittest.TestCase):
proc)
def test_module_names(self):
self.assertIsInstance(sys.module_names, frozenset)
for name in sys.module_names:
self.assertIsInstance(sys.stdlib_module_names, frozenset)
for name in sys.stdlib_module_names:
self.assertIsInstance(name, str)