summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_importlib/test_namespace_pkgs.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_importlib/test_namespace_pkgs.py b/Lib/test/test_importlib/test_namespace_pkgs.py
index 8e4b5d66fe..a8f95a035e 100644
--- a/Lib/test/test_importlib/test_namespace_pkgs.py
+++ b/Lib/test/test_importlib/test_namespace_pkgs.py
@@ -332,6 +332,12 @@ class LoaderTests(NamespacePackageTest):
self.assertIsNone(foo.__spec__.origin)
self.assertIsNone(foo.__file__)
+ def test_path_indexable(self):
+ # bpo-35843
+ import foo
+ expected_path = os.path.join(self.root, 'portion1', 'foo')
+ self.assertEqual(foo.__path__[0], expected_path)
+
if __name__ == "__main__":
unittest.main()