#1140881 python-packaging: autopkgtest regression with pytest 9.1

#1140881#5
Date:
2026-06-27 21:23:31 UTC
From:
To:
Dear maintainer,

According to https://ci.debian.net data, your package python-packaging has an
autopkgtest regression with pytest.

The following architectures failed: amd64, arm64, i386, loong64,
ppc64el, riscv64, s390x.

Hopefully relevant excerpt from
https://ci.debian.net/packages/p/python-packaging/testing/amd64/72548901/
follows:

 52s ==================================== ERRORS ====================================
 52s __________________ ERROR collecting tests/test_specifiers.py ___________________
 52s E   pytest.PytestRemovedIn10Warning: Passing a non-Collection iterable to parametrize is deprecated.
 52s E   Test: tests/test_specifiers.py::TestSpecifier::test_comparison_true, argvalues type: chain
 52s E   Please convert to a list or tuple.
 52s E   See https://docs.pytest.org/en/stable/deprecations.html#parametrize-iterators
 52s __________________ ERROR collecting tests/test_specifiers.py ___________________
 52s E   pytest.PytestRemovedIn10Warning: Passing a non-Collection iterable to parametrize is deprecated.
 52s E   Test: tests/test_specifiers.py::TestSpecifierSet::test_comparison_true, argvalues type: chain
 52s E   Please convert to a list or tuple.
 52s E   See https://docs.pytest.org/en/stable/deprecations.html#parametrize-iterators
 52s ____________________ ERROR collecting tests/test_version.py ____________________
 52s E   pytest.PytestRemovedIn10Warning: Passing a non-Collection iterable to parametrize is deprecated.
 52s E   Test: tests/test_version.py::TestVersion::test_comparison_true, argvalues type: chain
 52s E   Please convert to a list or tuple.
 52s E   See https://docs.pytest.org/en/stable/deprecations.html#parametrize-iterators
 52s ERROR tests/test_specifiers.py::TestSpecifier - pytest.PytestRemovedIn10Warni...
 52s ERROR tests/test_specifiers.py::TestSpecifierSet - pytest.PytestRemovedIn10Wa...
 52s ERROR tests/test_version.py::TestVersion - pytest.PytestRemovedIn10Warning: P...
 52s E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=2: cd /tmp/autopkgtest-lxc.0a8u04p4/downtmp/autopkgtest_tmp/build; python3.14 -m pytest tests
 54s ==================================== ERRORS ====================================
 54s __________________ ERROR collecting tests/test_specifiers.py ___________________
 54s E   pytest.PytestRemovedIn10Warning: Passing a non-Collection iterable to parametrize is deprecated.
 54s E   Test: tests/test_specifiers.py::TestSpecifier::test_comparison_true, argvalues type: chain
 54s E   Please convert to a list or tuple.
 54s E   See https://docs.pytest.org/en/stable/deprecations.html#parametrize-iterators
 54s __________________ ERROR collecting tests/test_specifiers.py ___________________
 54s E   pytest.PytestRemovedIn10Warning: Passing a non-Collection iterable to parametrize is deprecated.
 54s E   Test: tests/test_specifiers.py::TestSpecifierSet::test_comparison_true, argvalues type: chain
 54s E   Please convert to a list or tuple.
 54s E   See https://docs.pytest.org/en/stable/deprecations.html#parametrize-iterators
 54s ____________________ ERROR collecting tests/test_version.py ____________________
 54s E   pytest.PytestRemovedIn10Warning: Passing a non-Collection iterable to parametrize is deprecated.
 54s E   Test: tests/test_version.py::TestVersion::test_comparison_true, argvalues type: chain
 54s E   Please convert to a list or tuple.
 54s E   See https://docs.pytest.org/en/stable/deprecations.html#parametrize-iterators
 54s ERROR tests/test_specifiers.py::TestSpecifier - pytest.PytestRemovedIn10Warni...
 54s ERROR tests/test_specifiers.py::TestSpecifierSet - pytest.PytestRemovedIn10Wa...
 54s ERROR tests/test_version.py::TestVersion - pytest.PytestRemovedIn10Warning: P...
 55s E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=2: cd /tmp/autopkgtest-lxc.0a8u04p4/downtmp/autopkgtest_tmp/build; python3.13 -m pytest tests
 55s pybuild-autopkgtest: error: pybuild --autopkgtest --test-pytest -i python{version} -p "3.14 3.13" --parallel= returned exit code 13
 55s pybuild-autopkgtest: error: /tmp/95R9QzQsqU/run pybuild-autopkgtest returned exit code 2
 55s pybuild-autopkgtest  FAIL non-zero exit status 25
 55s pybuild-autopkgtest  FAIL non-zero exit status 25

#1140881#10
Date:
2026-06-27 22:59:41 UTC
From:
To:
Hello,

Bug #1140881 in python-packaging reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/python-team/packages/python-packaging/-/commit/c18d5e21f993d8071ffee7a2cd61acbe295ef2dc
------------------------------------------------------------------------
add upstream patch for Pytest 9.1 compatibility (Closes: #1140881)
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1140881

#1140881#17
Date:
2026-06-27 23:40:36 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
python-packaging, 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 1140881@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 python-packaging 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: Sun, 28 Jun 2026 01:15:17 +0200
Source: python-packaging
Architecture: source
Version: 26.2-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Alexandre Detiste <tchet@debian.org>
Closes: 1140881
Changes:
 python-packaging (26.2-2) unstable; urgency=medium
 .
   * Team upload.
   * Add upstream patch for Pytest 9.1 compatibility (Closes: #1140881)
   * Salsa: test <!nocheck> profile
   * Tag test build-dependencies as <!nocheck>
   * Use dh-sequence-python3
   * Bump Standards-Version to 4.7.4, drop Priority: tag
   * Rewrite d/watch in v5 format
   * Add debian/upstream/metadata
Checksums-Sha1:
 efc0daf468981aa74ffc5b0f163d4f4e792d2f9c 2350 python-packaging_26.2-2.dsc
 ee4fb45119afd31eb3a6c4e3c0d4bfeff73f1cb8 6172 python-packaging_26.2-2.debian.tar.xz
 af76baee8430e03b55e26c24d093a35765616f3e 7652 python-packaging_26.2-2_source.buildinfo
Checksums-Sha256:
 38a865384bd2c7f0ed12b6cdb9f0be2988a7e44b9ed9ed51368999b842ddd20a 2350 python-packaging_26.2-2.dsc
 f2cf94e711b71c28a7e2d053ee24f4899084a39ba8ce1d246c3255ab71579255 6172 python-packaging_26.2-2.debian.tar.xz
 ae47eb4db598dfa4bf0aaadd3c6a9ce34757a6c3b72067eb0c27e059841bfccc 7652 python-packaging_26.2-2_source.buildinfo
Files:
 860bec19df4c06005088d0e6f2a05b4a 2350 python optional python-packaging_26.2-2.dsc
 451d9b26d42dc40aacb7aa2fef37bfc9 6172 python optional python-packaging_26.2-2.debian.tar.xz
 2e5b06684f56d0b1adca92fb414c4b87 7652 python optional python-packaging_26.2-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEEj23hBDd/OxHnQXSHMfMURUShdBoFAmpAWdcRHHRjaGV0QGRl
Ymlhbi5vcmcACgkQMfMURUShdBpk9RAAj+qf9NirWMIasj3jZ0nccB2DcJHyiTTH
020E1bxszNF2rFJ2d+aUchCTlQ1PJs+57mVc2Xhu6/Y3o9/ueBSdBTqEeZqdhE2W
nVDHZMzP3uoBNdnVBOyehjUc1WqRgI3aAxbi/DZJP2R+jZidwLHV7lYztdHReGPo
6yuMWpC9sACdI7ObKCQoq3FSekBg4XyXSWXqcTxrXEkYBu76YbX27XWhyLAIwVzv
XzUnLKJBLGooGfjNn6pw2JFirYsLGTHiSQqjvjUPt0BK+huMjvwof1StMJCne6Ch
RZHq9ACSA5OfeVePpk1Wf3AUfyT5zC1rvHRq5uP6PeJl4ETA6DQuqYmF6r/hJuUt
ilZs3VbgdGmuJigwPdlOW0EeMBFtj9qI+A3E8P/z7MTjchXhsO64zOoxw5JZIdJE
Ryf2ahRIr/Lyy6PHjbgaKbxrVh7tRvN1UTA1nZn78uYYj8LE9lZ7LrOUykyUYtka
VDxPHmxwwms15ENO4yW5FAN6n4B+4HHY883rbbXMwsqmBNTT4Wwukq9AiMyryhYv
vr0DFr61vHovRPBSAP1Yr40VZE/pyjR8WckapwYc1kfsn10cwzSJgsb/nEELnZbT
Xt9Uv3mGVD9h5P0P2lDf016h272WVfKCLJJpyCw7SCPS9fSTgyxzkAYBPMgdR6Mp
dV148KChzhw=
=BniQ
-----END PGP SIGNATURE-----