Skip to content

Commit f1aec3a

Browse files
Remove the test for old namespace package based on pkg_resource
It won't work when the package is removed anyway
1 parent 2da7a38 commit f1aec3a

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

tests/test_manager.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -117,16 +117,6 @@ def test_ast_from_namespace_pkgutil(self) -> None:
117117
def test_ast_from_namespace_pkg_resources(self) -> None:
118118
self._test_ast_from_old_namespace_package_protocol("pkg_resources")
119119

120-
def test_identify_old_namespace_package_protocol(self) -> None:
121-
# Like the above cases, this package follows the old namespace package protocol
122-
# astroid currently assumes such packages are in sys.modules, so import it
123-
# pylint: disable-next=import-outside-toplevel
124-
import tests.testdata.python3.data.path_pkg_resources_1.package.foo as _ # noqa
125-
126-
self.assertTrue(
127-
util.is_namespace("tests.testdata.python3.data.path_pkg_resources_1")
128-
)
129-
130120
def test_submodule_homonym_with_non_module(self) -> None:
131121
self.assertFalse(
132122
util.is_namespace("tests.testdata.python3.data.parent_of_homonym.doc")

0 commit comments

Comments
 (0)