Package: src:astroid
Version: 4.1.1-2
Severity: serious
Tags: sid forky
User: [email protected]
Usertags: pkg-resources-deprecation
the autopkg tests still make use of the removed pkg_resources module.
[...]
114s =================================== FAILURES
===================================
114s _______
AstroidManagerTest.test_identify_old_namespace_package_protocol ________
114s
114s self = <tests.test_manager.AstroidManagerTest
testMethod=test_identify_old_namespace_package_protocol>
114s
114s def test_identify_old_namespace_package_protocol(self) -> None:
114s # Like the above cases, this package follows the old
namespace package protocol
114s # astroid currently assumes such packages are in
sys.modules, so import it
114s with warnings.catch_warnings():
114s warnings.filterwarnings(
114s "ignore",
114s category=UserWarning,
114s message=".*pkg_resources is deprecated.*",
114s )
114s
114s # pylint: disable-next=import-outside-toplevel
114s > import
tests.testdata.python3.data.path_pkg_resources_1.package.foo as _ # noqa
114s
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
114s
114s tests/test_manager.py:131:
114s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _
114s
114s import warnings
114s
114s with warnings.catch_warnings():
114s warnings.simplefilter("ignore", DeprecationWarning)
114s > __import__("pkg_resources").declare_namespace(__name__)
114s ^^^^^^^^^^^^^^^^^^^^^^^^^^^
114s E ModuleNotFoundError: No module named 'pkg_resources'
114s
114s
tests/testdata/python3/data/path_pkg_resources_1/package/__init__.py:5:
ModuleNotFoundError
114s =========================== short test summary info
============================