From c4cc193921651eedd70d6e6a5dedaa81db2f6a67 Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Mon, 30 May 2022 12:04:20 -0400 Subject: Provide first component of dotted path to namespace searches (#1575) * Use first component of dotted path only in namespace searches * Add test and catch KeyError instead of altering search strategy --- tests/testdata/python3/data/parent_of_homonym/__init__.py | 0 tests/testdata/python3/data/parent_of_homonym/doc/README.md | 2 ++ tests/testdata/python3/data/parent_of_homonym/doc/__init__.py | 0 3 files changed, 2 insertions(+) create mode 100644 tests/testdata/python3/data/parent_of_homonym/__init__.py create mode 100644 tests/testdata/python3/data/parent_of_homonym/doc/README.md create mode 100644 tests/testdata/python3/data/parent_of_homonym/doc/__init__.py (limited to 'tests/testdata/python3/data') diff --git a/tests/testdata/python3/data/parent_of_homonym/__init__.py b/tests/testdata/python3/data/parent_of_homonym/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/tests/testdata/python3/data/parent_of_homonym/doc/README.md b/tests/testdata/python3/data/parent_of_homonym/doc/README.md new file mode 100644 index 00000000..d24e8943 --- /dev/null +++ b/tests/testdata/python3/data/parent_of_homonym/doc/README.md @@ -0,0 +1,2 @@ +This submodule should have the same name as a directory in the root of the project that +is _NOT_ a python module. For this reason, it's currently called "doc". diff --git a/tests/testdata/python3/data/parent_of_homonym/doc/__init__.py b/tests/testdata/python3/data/parent_of_homonym/doc/__init__.py new file mode 100644 index 00000000..e69de29b -- cgit v1.2.1