mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Fixes issue 15039: namespace packages are no longer imported in preference to modules of the same name.
This commit is contained in:
parent
e6bdc8f2dd
commit
e51a36922f
7 changed files with 983 additions and 965 deletions
|
@ -110,7 +110,7 @@ class FinderTests(abc.FinderTests):
|
|||
def test_package_over_module(self):
|
||||
name = '_temp'
|
||||
loader = self.run_test(name, {'{0}.__init__'.format(name), name})
|
||||
self.assertTrue('__init__' in loader.get_filename(name))
|
||||
self.assertIn('__init__', loader.get_filename(name))
|
||||
|
||||
def test_failure(self):
|
||||
with source_util.create_modules('blah') as mapping:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue