mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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:
parent
501d4a51e3
commit
9852cb3811
15 changed files with 61 additions and 60 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue