- Package:
- src:astroid
- Source:
- src:astroid
- Submitter:
- Matthias Klose
- Date:
- 2026-09-14 20:31:02 UTC
- Severity:
- normal
- Tags:
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
============================
We believe that the bug you reported is fixed in the latest version of astroid, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 1147330@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Alexandre Detiste <tchet@debian.org> (supplier of updated astroid package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org) Format: 1.8 Date: Mon, 14 Sep 2026 21:39:13 +0200 Source: astroid Architecture: source Version: 4.3.1-2 Distribution: unstable Urgency: medium Maintainer: Debian Python Team <team+python@tracker.debian.org> Changed-By: Alexandre Detiste <tchet@debian.org> Closes: 1147330 Changes: astroid (4.3.1-2) unstable; urgency=medium . * Team upload. * Skip identify_old_namespace_package_protocol (Closes: #1147330) Checksums-Sha1: 3ec1491d15332ce6e416bd2e5349c38562d4c9d0 2325 astroid_4.3.1-2.dsc 93363ab397e203fb5e381597104517ce6a96fb6e 5972 astroid_4.3.1-2.debian.tar.xz 08297b553f3d3558e16605fe655f584a6ee4dc54 7389 astroid_4.3.1-2_source.buildinfo Checksums-Sha256: ad59376a123c0c36c0826b8e3a7ec9a60630c42c75a9c6360fa3d656f6ce470e 2325 astroid_4.3.1-2.dsc e2c92b4025adf6ff3500731876b2b960c4f1d63da4a4ee41bcfe92042a9b91ee 5972 astroid_4.3.1-2.debian.tar.xz e55938af994ec0906a2853e529b576ec1aac5489c65fb53129e53fe3afbe0d23 7389 astroid_4.3.1-2_source.buildinfo Files: 9dd42cdf0173623b2f96372d58aacd6d 2325 python optional astroid_4.3.1-2.dsc cc1488d9a890114b227bee28ec5a558d 5972 python optional astroid_4.3.1-2.debian.tar.xz 35f4ee0386032c6058ef22577e672cb2 7389 python optional astroid_4.3.1-2_source.buildinfo -----BEGIN PGP SIGNATURE----- iQJFBAEBCgAvFiEEj23hBDd/OxHnQXSHMfMURUShdBoFAmqoTcQRHHRjaGV0QGRl Ymlhbi5vcmcACgkQMfMURUShdBpgCA/+JKEANQZqAG/TdtfeTcORgF46qzjcBMkg 1wdCyWCg2wydRk5T/WDFzH7gdRzIGW+2aSQjUMAhU9PhSSVYjDNALQCpV+Xkeu3T JT47RfwEJDMo4vQeQ786Ejbsje2gRzPxZ/EgKNNfh9Uu7ldBoQDye+wqesGQQmE/ 1hpKz8ehmysGpRLyQQpP1m5bV3rxuzDOAh3SEmTPniRVEXvxuEidtrZCcvuqXJNI eOphq1pkekrFASxdovvnmLxmUfto5zeVvQ5om3KXqJWDq2Kp0Kq9N7wWLDdzKi4T fYMNQPrrnnNDLsXWj+AsktThZQij4BPN0llJMnO+XR6kDKV6B4rVCT/iYnTVliO4 7XoMxrp0/XPUDvx3KDLhbs9qPpB5SmPrzPcJEfRUgweahl/mjGL34+tMAdzCNMuV MPLzvhVf/jwElc8RlM7scZwkE2BYcTi24MBvlH/boelaACNZuX0IwAAM+Gwo0r25 vJCoc+yaSHmp4lGFcesMnRNrlsUXm66qpF1RhSkic1E16cWcp9Fgvwu6wQUceOPx 1pajrNvR0a80RxC3Fy8FkUyRumWWE84RDHy4vrrnply7gBaLGDF13NMEKt2bKsSn T1IpC7REbZs3SwvtBLsMgJIu/wx0NsC2+Xiv4kFP9ik7wgaxDCdodf4uNGytMw0B ptBMqVtb/78= =SPYU -----END PGP SIGNATURE-----