diff options
| author | Jacob Walls <jacobtylerwalls@gmail.com> | 2022-05-30 18:38:51 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-30 18:38:51 -0400 |
| commit | 18483dc169987299b58effd95d65c1f6e8fc36a6 (patch) | |
| tree | f2014ba676cf21aaf0cbad4679a5482ef15e5d09 /tests | |
| parent | fd89cc743d8f2bc562fb143054b5a26f47ce577a (diff) | |
| download | astroid-git-18483dc169987299b58effd95d65c1f6e8fc36a6.tar.gz | |
Revert #1575 and catch further `KeyError`s (#1576)
Provide `ModuleSpec.submodule_search_locations` to the `path` argument of `PathFinder.find_spec()`
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/unittest_manager.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unittest_manager.py b/tests/unittest_manager.py index d098ca13..922b78a9 100644 --- a/tests/unittest_manager.py +++ b/tests/unittest_manager.py @@ -125,6 +125,9 @@ class AstroidManagerTest( util.is_namespace("tests.testdata.python3.data.parent_of_homonym.doc") ) + def test_module_is_not_namespace(self) -> None: + self.assertFalse(util.is_namespace("tests.testdata.python3.data.all")) + def test_implicit_namespace_package(self) -> None: data_dir = os.path.dirname(resources.find("data/namespace_pep_420")) contribute = os.path.join(data_dir, "contribute_to_namespace") |
