summaryrefslogtreecommitdiff
path: root/tests/testdata/python3/data
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2022-05-30 12:04:20 -0400
committerGitHub <noreply@github.com>2022-05-30 18:04:20 +0200
commitc4cc193921651eedd70d6e6a5dedaa81db2f6a67 (patch)
tree3b27543c912b6064edc53dbbf402de2a5cf0101a /tests/testdata/python3/data
parent152083468dffb8ede7465f7f0250d081b8da3523 (diff)
downloadastroid-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')
-rw-r--r--tests/testdata/python3/data/parent_of_homonym/__init__.py0
-rw-r--r--tests/testdata/python3/data/parent_of_homonym/doc/README.md2
-rw-r--r--tests/testdata/python3/data/parent_of_homonym/doc/__init__.py0
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