Package: python3-pytest
Version: 9.0.2-2
Severity: normal
X-Debbugs-Cc: [email protected]

The current Breaks/Replaces/Provides on python3-pytest-subtests is not
enough to cause apt to uninstall python3-pytest-subtests during a
trixie→forky upgrade, leaving python3-pytest held back.

Replaces: python3-pytest-subtests (<< 0.15.0+)
Provides: python3-pytest-subtests
Breaks: python3-pytest-subtests (<< 0.15.0+)

And a reproducer (trimming apt's normal verbosity) is below. apt does
not feel like uninstalling python3-pytest-subtests on the full-upgrade.
I'm not sure if an empty transitional package is needed in forky so that
apt can upgrade to that.

This is case #11 in https://wiki.debian.org/PackageTransition which is
marked as "may be wrong".


$ schroot -c chroot:trixie-amd64-sbuild -u root
(trixie-amd64-sbuild):~# apt install python3-pytest-subtests
[...]

(trixie-amd64-sbuild):~# sed -i s/trixie/forky/ /etc/apt/sources.list

(trixie-amd64-sbuild):~# apt update
[...]

(trixie-amd64-sbuild):~# apt upgrade
[... upgrades almost every package ...]

(trixie-amd64-sbuild):~# apt full-upgrade
Not upgrading:
  python3-pytest

Summary:
  Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 1

(trixie-amd64-sbuild):~# apt install python3-pytest
The following package was automatically installed and is no longer required:
  python3-attr
Use 'apt autoremove' to remove it.

Upgrading:
  python3-pytest

REMOVING:
  python3-pytest-subtests

Summary:
  Upgrading: 1, Installing: 0, Removing: 1, Not Upgrading: 0
  Download size: 275 kB
  Space needed: 95.2 kB / 470 GB available

Continue? [Y/n]
Get:1 http://deb.debian.org/debian forky/main amd64 python3-pytest all 9.0.2-2 
[275 kB]
Fetched 275 kB in 0s (0 B/s)
Removing python3-pytest-subtests (0.13.1-1) ...
Preparing to unpack .../python3-pytest_9.0.2-2_all.deb ...
Unpacking python3-pytest (9.0.2-2) over (8.3.5-2) ...
Setting up python3-pytest (9.0.2-2) ...

Reply via email to