#1140866 pydantic: autopkgtest regression with pytest 9.1

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

According to https://ci.debian.net data, your package pydantic 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/pydantic/testing/amd64/72542054/
follows:

105s ==================================== ERRORS ====================================
105s _____________________ ERROR collecting tests/test_utils.py _____________________
105s E   pytest.PytestRemovedIn10Warning: Passing a non-Collection iterable to parametrize is deprecated.
105s E   Test: tests/test_utils.py::test_smart_deepcopy_empty_collection, argvalues type: generator
105s E   Please convert to a list or tuple.
105s E   See https://docs.pytest.org/en/stable/deprecations.html#parametrize-iterators
105s __________________ ERROR collecting tests/test_validators.py ___________________
105s E   pytest.PytestRemovedIn10Warning: Passing a non-Collection iterable to parametrize is deprecated.
105s E   Test: tests/test_validators.py::test_root_validator_classmethod, argvalues type: product
105s E   Please convert to a list or tuple.
105s E   See https://docs.pytest.org/en/stable/deprecations.html#parametrize-iterators
105s ERROR tests/test_utils.py - pytest.PytestRemovedIn10Warning: Passing a non-Co...
105s ERROR tests/test_validators.py - pytest.PytestRemovedIn10Warning: Passing a n...
105s E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=2: cd /tmp/autopkgtest-lxc.v7wo6how/downtmp/autopkgtest_tmp/build; python3.14 -m pytest --ignore tests/pydantic_core --ignore tests/test_docs.py
110s ==================================== ERRORS ====================================
110s _____________________ ERROR collecting tests/test_utils.py _____________________
110s E   pytest.PytestRemovedIn10Warning: Passing a non-Collection iterable to parametrize is deprecated.
110s E   Test: tests/test_utils.py::test_smart_deepcopy_empty_collection, argvalues type: generator
110s E   Please convert to a list or tuple.
110s E   See https://docs.pytest.org/en/stable/deprecations.html#parametrize-iterators
110s __________________ ERROR collecting tests/test_validators.py ___________________
110s E   pytest.PytestRemovedIn10Warning: Passing a non-Collection iterable to parametrize is deprecated.
110s E   Test: tests/test_validators.py::test_root_validator_classmethod, argvalues type: product
110s E   Please convert to a list or tuple.
110s E   See https://docs.pytest.org/en/stable/deprecations.html#parametrize-iterators
110s ERROR tests/test_utils.py - pytest.PytestRemovedIn10Warning: Passing a non-Co...
110s ERROR tests/test_validators.py - pytest.PytestRemovedIn10Warning: Passing a n...
110s E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=2: cd /tmp/autopkgtest-lxc.v7wo6how/downtmp/autopkgtest_tmp/build; python3.13 -m pytest --ignore tests/pydantic_core --ignore tests/test_docs.py
110s pybuild-autopkgtest: error: pybuild --autopkgtest --test-pytest -i python{version} -p "3.14 3.13" --parallel= returned exit code 13
110s pybuild-autopkgtest: error: /tmp/qfxzKz7Hsj/run pybuild-autopkgtest returned exit code 2
110s pybuild-autopkgtest  FAIL non-zero exit status 25
110s pybuild-autopkgtest  FAIL non-zero exit status 25

#1140866#14
Date:
2026-06-28 15:12:21 UTC
From:
To:
Hello,

Bug #1140866 in pydantic 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/pydantic/-/commit/cfb05e1d5fe308532520bc98fdb08d0d7029a50d
------------------------------------------------------------------------
Fix test failures with pytest >= 9.1.0

Closes: #1140866
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1140866

#1140866#21
Date:
2026-06-28 15:49:09 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
pydantic, 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 1140866@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Colin Watson <cjwatson@debian.org> (supplier of updated pydantic 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 16:23:27 +0100
Source: pydantic
Architecture: source
Version: 2.13.4-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Colin Watson <cjwatson@debian.org>
Closes: 1140866
Changes:
 pydantic (2.13.4-3) unstable; urgency=medium
 .
   * Reupload due to my failure to drive tag2upload correctly.
 .
 pydantic (2.13.4-2) unstable; urgency=medium
 .
   * Fix test failures with pytest >= 9.1.0 (closes: #1140866).
Checksums-Sha1:
 9e541ce4eeaa1a537492f3fc08977fd2569ce8df 3079 pydantic_2.13.4-3.dsc
 4020ba43e08ac03793d6b050c8a514f999727fcb 6984 pydantic_2.13.4-3.debian.tar.xz
 cfb1fd2ee2fa20da50778b87c38f66ba793191bb 4382892 pydantic_2.13.4-3.git.tar.xz
 057f55c82e58518508abe3c5299917614eef6b6c 17504 pydantic_2.13.4-3_source.buildinfo
Checksums-Sha256:
 b7103ecc7e6a87078b478e1b974c22da0b04ab536b2eaecbecdb34ea48808a93 3079 pydantic_2.13.4-3.dsc
 f684ae593a93202065bac04065186d5183af50fe3dbe0ccb69d7d5a4ef9e21d5 6984 pydantic_2.13.4-3.debian.tar.xz
 81ab4181e525b1c0c7e04c35472c9e0c0fe4ade8410a7842ca0fe1bb2b05f8e3 4382892 pydantic_2.13.4-3.git.tar.xz
 51f041a6b97f6d9a0f049c1d0e21dbf3899155ca981d4e7d4dd19e09d37a0aba 17504 pydantic_2.13.4-3_source.buildinfo
Files:
 686c491e2052350c87cf9c6b9fa02e13 3079 python optional pydantic_2.13.4-3.dsc
 a3b36ec17be61d097fce5be52e723b28 6984 python optional pydantic_2.13.4-3.debian.tar.xz
 009648d58fd52489280995180e761f22 4382892 python optional pydantic_2.13.4-3.git.tar.xz
 ece2a7d3d1ecadf9de63454ef97dda9d 17504 python optional pydantic_2.13.4-3_source.buildinfo
Git-Tag-Info: tag=d73ebf289ca84003c9be0d18438d4e318ead762a fp=ac0a4ff12611b6fccf01c111393587d97d86500b
Git-Tag-Tagger: Colin Watson <cjwatson@debian.org>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmpBPMUACgkQYG0ITkaD
wHme/xAAuva5GSYTL0T4inJo7r3Ga4IPsUil40wlvdGJ2GA6nDvh6aWVTL6xtSWj
QkWMli4z4GqoLyrzvhEIXbWB6asbRH2ZDn0XHGXiY5e6txwWYZ4LsHVDi4onPga3
CFqMAuW6AUacyqj2uZuBcanopzpG5RNWrKZmsHLzRGvWfBx0YmblAdrTE+usuJ3f
Ipn9puZ9ddAkZJwxQ8GTbjiSp4gJWHkyrUgYnSXxBnB5AjeG9k/vP21eUPnwrbS3
lj108gme1G756YwP17y1iW2KpVnCb/AQJg1vYEKULCcZPlF2OxmXgGLH+u/o+/Kh
BK+uRB3mDyuWdh2+GRsnI7My1OupZED9lF4qg8Gxsi0mMSbfzzv7lEKUVK1SFDrF
o2ccY8Btbs6ooX+N9HXP6GEBhWIjXFHVwwBNZYhdvgJl/uz6JYDlOEP6bMzbpX/b
GZWxTimOenHhSXnV+POQMt+hnh75sxmQi0LTy+RXaTMGN0J9ikbedNTDCotPE3A8
yqqii6u0ZrZVa6hgbgI01Ns3SX/FGilUinFSBOZcZHOtv4nD09rq7FXaORIy5ldd
HbChsL9V6vxj1dCQET8/Ux8xHB3enZLoXz5VjEarx+9HJLveJgefFa991JS+FAFe
NDefcBDvNHpyDQEM6/n45ehtNVUBcio1k5E6wqIwdTmBNpPobBg=
=X+gz
-----END PGP SIGNATURE-----