diff options
author | Eric V. Smith <eric@trueblade.com> | 2012-06-24 23:13:55 (GMT) |
---|---|---|
committer | Eric V. Smith <eric@trueblade.com> | 2012-06-24 23:13:55 (GMT) |
commit | e51a36922ffcce8c5e45cc88dc95a9d33ead0f11 (patch) | |
tree | 77a4d11d13469e4aed6530c841252d98819ef198 /Lib/importlib/test | |
parent | e6bdc8f2dd0d8cb495e61d08f1db9e0e19c03b1d (diff) | |
download | cpython-e51a36922ffcce8c5e45cc88dc95a9d33ead0f11.zip cpython-e51a36922ffcce8c5e45cc88dc95a9d33ead0f11.tar.gz cpython-e51a36922ffcce8c5e45cc88dc95a9d33ead0f11.tar.bz2 |
Fixes issue 15039: namespace packages are no longer imported in preference to modules of the same name.
Diffstat (limited to 'Lib/importlib/test')
-rw-r--r-- | Lib/importlib/test/source/test_finder.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/test/source/test_finder.py b/Lib/importlib/test/source/test_finder.py index a3fa21d..b22c103 100644 --- a/Lib/importlib/test/source/test_finder.py +++ b/Lib/importlib/test/source/test_finder.py @@ -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: |