Move importlib's built-in importer to use rpartition for __package__.

This commit is contained in:
Brett Cannon 2009-02-07 01:40:19 +00:00
parent eb2e0dd19d
commit d94e558fdc
2 changed files with 4 additions and 2 deletions

View file

@ -15,7 +15,7 @@ class LoaderTests(abc.LoaderTests):
assert 'errno' in sys.builtin_module_names
name = 'errno'
verification = {'__name__': 'errno', '__package__': None}
verification = {'__name__': 'errno', '__package__': ''}
def verify(self, module):
"""Verify that the module matches against what it should have."""