summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_namespace_pkgs.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_namespace_pkgs.py')
-rw-r--r--Lib/test/test_namespace_pkgs.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_namespace_pkgs.py b/Lib/test/test_namespace_pkgs.py
index 7ad511f..6693d64 100644
--- a/Lib/test/test_namespace_pkgs.py
+++ b/Lib/test/test_namespace_pkgs.py
@@ -276,10 +276,12 @@ class ZipWithMissingDirectory(NamespacePackageTest):
self.assertEqual(bar.two.attr, 'missing_directory foo two')
-class ModuleAndFileInSameDir(NamespacePackageTest):
- paths = ['module_and_file']
+class ModuleAndNamespacePackageInSameDir(NamespacePackageTest):
+ paths = ['module_and_namespace_package']
def test_module_before_namespace_package(self):
+ # Make sure we find the module in preference to the
+ # namespace package.
import a_test
self.assertEqual(a_test.attr, 'in module')