#1151441 python-psutil: autopkgtest regression on multiple architectures

#1151441#5
Date:
2026-10-20 17:55:30 UTC
From:
To:
https://tracker.debian.org/pkg/python-psutil

Migration status for python-psutil (7.1.0-1 to 7.2.2-2): BLOCKED: Rejected/violates migration policy/introduces a regression
Issues preventing migration:
∙ ∙ Autopkgtest for python-psutil/7.2.2-2: amd64: Regression ♻ (reference ♻), arm64: Regression ♻ (reference ♻), armhf: Pass, i386: Reference test triggered, but real test failed already ♻, ppc64el: Regression ♻ (reference ♻), s390x: Pass

...
 90s =================================== FAILURES ===================================
 90s ______________ TestSystemSwapMemory.test_meminfo_against_sysinfo _______________
 90s
 90s self = <tests.test_linux.TestSystemSwapMemory testMethod=test_meminfo_against_sysinfo>
 90s
 90s     def test_meminfo_against_sysinfo(self):
 90s         # Make sure the content of /proc/meminfo about swap memory
 90s         # matches sysinfo() syscall, see:
 90s         # https://github.com/giampaolo/psutil/issues/1015
 90s         if not self.meminfo_has_swap_info():
 90s             return pytest.skip("/proc/meminfo has no swap metrics")
 90s         with mock.patch('psutil._pslinux.cext.linux_sysinfo') as m:
 90s             swap = psutil.swap_memory()
 90s         assert not m.called
 90s         import psutil._psutil_linux as cext
 90s
 90s         _, _, _, _, total, free, unit_multiplier = cext.linux_sysinfo()
 90s         total *= unit_multiplier
 90s         free *= unit_multiplier
 90s         assert swap.total == total
 90s >       assert abs(swap.free - free) < TOLERANCE_SYS_MEM
 90s E       assert 205803520 < 5242880
 90s E        +  where 205803520 = abs((161576116224 - 161370312704))
 90s E        +    where 161576116224 = sswap(total=161576116224, used=0, free=161576116224, percent=0.0, sin=87134437376, sout=321620594688).free
 90s
 90s tests/test_linux.py:608: AssertionError
 90s =========================== short test summary info ============================
 90s FAILED tests/test_linux.py::TestSystemSwapMemory::test_meminfo_against_sysinfo
 90s = 1 failed, 399 passed, 159 skipped, 38 deselected, 462 subtests passed in 22.39s =
...