diff options
| author | Jacob Walls <jacobtylerwalls@gmail.com> | 2022-05-30 12:04:20 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-30 18:04:20 +0200 |
| commit | c4cc193921651eedd70d6e6a5dedaa81db2f6a67 (patch) | |
| tree | 3b27543c912b6064edc53dbbf402de2a5cf0101a /tests/testdata/python3/data | |
| parent | 152083468dffb8ede7465f7f0250d081b8da3523 (diff) | |
| download | astroid-git-c4cc193921651eedd70d6e6a5dedaa81db2f6a67.tar.gz | |
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
Diffstat (limited to 'tests/testdata/python3/data')
3 files changed, 2 insertions, 0 deletions
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 --- /dev/null +++ b/tests/testdata/python3/data/parent_of_homonym/__init__.py 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 --- /dev/null +++ b/tests/testdata/python3/data/parent_of_homonym/doc/__init__.py |
