Debian Patches

Status for python-packaging/26.2-2

Patch Description Author Forwarded Bugs Origin Last update
155760e37acbe24bf82444f21e805006ef0b58c8.patch test: make test suite compatible with pytest 9.1.0 (#1260)
* test: wrap parametrize argvalues in list for pytest compatibility

A recent pytest release escalated PytestRemovedIn10Warning ("Passing a
non-Collection iterable to parametrize is deprecated") to a warning that,
under this repo's filterwarnings=error, fails collection. The comparison
tests in test_specifiers.py and test_version.py passed
itertools.chain.from_iterable(...) — a lazy chain iterator — directly as
the parametrize argvalues.

Wrap each in list() so a concrete Collection is passed. No test behavior
changes; this only affects how the cases are materialized at collection.


* test(downstream): pin pytest<9.1.0 for downstream suites

pytest 9.1.0 turns the pinned downstream releases' parametrize usage into
collection errors (non-Collection iterable in packaging_legacy/setuptools,
duplicate parametrization in build). These suites were green on the last
pre-9.1.0 run. Install pytest<9.1.0 before each project's test deps so a
compatible version is kept; the pin downgrades the 9.1.0 that the deps
would otherwise pull.

Verified locally: packaging_legacy downstream collects and passes on 9.0.3.
Henry Schreiner <HenrySchreinerIII@gmail.com> no 2026-06-14

All known versions for source package 'python-packaging'

Links