aboutsummaryrefslogtreecommitdiffstatshomepage
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.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_namespace_pkgs.py b/Lib/test/test_namespace_pkgs.py
index 02b55281cf0..7ad511fae7f 100644
--- a/Lib/test/test_namespace_pkgs.py
+++ b/Lib/test/test_namespace_pkgs.py
@@ -276,6 +276,14 @@ class ZipWithMissingDirectory(NamespacePackageTest):
self.assertEqual(bar.two.attr, 'missing_directory foo two')
+class ModuleAndFileInSameDir(NamespacePackageTest):
+ paths = ['module_and_file']
+
+ def test_module_before_namespace_package(self):
+ import a_test
+ self.assertEqual(a_test.attr, 'in module')
+
+
def test_main():
run_unittest(*NamespacePackageTest.__subclasses__())