Bug#1147359: ros-vcstools: using the removed pkg_resources module in the autopkg tests
Matthias Klose
doko at debian.org
Fri Sep 11 09:05:49 BST 2026
Package: src:ros-vcstools
Version: 0.1.42-9
Severity: serious
Tags: sid forky
User: debian-python at lists.debian.org
Usertags: pkg-resources-deprecation
using the removed pkg_resources module in the autopkg tests:
[...]
76s autopkgtest [04:27:35]: test pybuild-autopkgtest:
[-----------------------
77s pybuild-autopkgtest
77s I: pybuild pybuild:390: git config --global protocol.file.allow always
77s I: pybuild base:385: cd
/tmp/autopkgtest.Jd9xQ0/autopkgtest_tmp/build; python3.14 -m pytest test
77s ============================= test session starts
==============================
77s platform linux -- Python 3.14.7, pytest-9.1.1, pluggy-1.6.0
77s rootdir: /tmp/autopkgtest.Jd9xQ0/autopkgtest_tmp/build
77s collected 147 items / 1 error
77s
77s ==================================== ERRORS
====================================
77s __________________ ERROR collecting test/test_code_format.py
___________________
77s ImportError while importing test module
'/tmp/autopkgtest.Jd9xQ0/autopkgtest_tmp/build/test/test_code_format.py'.
77s Hint: make sure your test modules/packages have valid Python names.
77s Traceback:
77s /usr/lib/python3.14/importlib/__init__.py:88: in import_module
77s return _bootstrap._gcd_import(name[level:], package, level)
77s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
77s test/test_code_format.py:3: in <module>
77s from pkg_resources import parse_version, get_distribution
77s E ModuleNotFoundError: No module named 'pkg_resources'
77s =============================== warnings summary
===============================
77s test/test_git.py:397
77s
/tmp/autopkgtest.Jd9xQ0/autopkgtest_tmp/build/test/test_git.py:397:
SyntaxWarning: "is not" with 'tuple' literal. Did you mean "!="?
77s self.assertTrue(client._get_branch_parent() is not (None, None))
77s
77s test/test_git_subm.py:576
77s
/tmp/autopkgtest.Jd9xQ0/autopkgtest_tmp/build/test/test_git_subm.py:576:
SyntaxWarning: "\ " is an invalid escape sequence. Such sequences will
not work in the future. Did you mean "\\ "? A raw string is also an option.
77s \ No newline at end of file''' in output, output)
77s
77s test/test_git_subm.py:584
77s
/tmp/autopkgtest.Jd9xQ0/autopkgtest_tmp/build/test/test_git_subm.py:584:
SyntaxWarning: "\ " is an invalid escape sequence. Such sequences will
not work in the future. Did you mean "\\ "? A raw string is also an option.
77s \ No newline at end of file''' in output, output)
77s
77s test/test_svn.py:391
77s
/tmp/autopkgtest.Jd9xQ0/autopkgtest_tmp/build/test/test_svn.py:391:
SyntaxWarning: "\(" is an invalid escape sequence. Such sequences will
not work in the future. Did you mean "\\("? A raw string is also an option.
77s fixedline = re.sub('\(revision [0-9]+\)', '(working copy)', line)
77s
77s test/test_svn.py:393
77s
/tmp/autopkgtest.Jd9xQ0/autopkgtest_tmp/build/test/test_svn.py:393:
SyntaxWarning: "\(" is an invalid escape sequence. Such sequences will
not work in the future. Did you mean "\\("? A raw string is also an option.
77s fixedline = re.sub('\(nonexistent\)', '(working copy)', fixedline)
77s
77s -- Docs:
https://docs.pytest.org/en/stable/how-to/capture-warnings.html
77s =========================== short test summary info
============================
77s ERROR test/test_code_format.py
77s !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection
!!!!!!!!!!!!!!!!!!!!
More information about the debian-science-maintainers
mailing list