mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Rename importlib.util.set___package__ to set_package.
This commit is contained in:
parent
1fcadcef40
commit
435aad878c
4 changed files with 9 additions and 9 deletions
|
@ -63,13 +63,13 @@ class ModuleForLoaderTests(unittest.TestCase):
|
|||
class SetPackageTests(unittest.TestCase):
|
||||
|
||||
|
||||
"""Tests for importlib.util.set___package__."""
|
||||
"""Tests for importlib.util.set_package."""
|
||||
|
||||
def verify(self, module, expect):
|
||||
"""Verify the module has the expected value for __package__ after
|
||||
passing through set___package__."""
|
||||
passing through set_package."""
|
||||
fxn = lambda: module
|
||||
wrapped = util.set___package__(fxn)
|
||||
wrapped = util.set_package(fxn)
|
||||
wrapped()
|
||||
self.assert_(hasattr(module, '__package__'))
|
||||
self.assertEqual(expect, module.__package__)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue