mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Move importlib completely over to using rpartition and accepting the empty
string for top-level modules.
This commit is contained in:
parent
d94e558fdc
commit
06c9d96b70
4 changed files with 22 additions and 15 deletions
|
@ -23,7 +23,7 @@ class SimpleTest(unittest.TestCase):
|
|||
module = loader.load_module('_temp')
|
||||
self.assert_('_temp' in sys.modules)
|
||||
check = {'__name__': '_temp', '__file__': mapping['_temp'],
|
||||
'__package__': None}
|
||||
'__package__': ''}
|
||||
for attr, value in check.items():
|
||||
self.assertEqual(getattr(module, attr), value)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue