Bug#1136441: python-apt FTBFS: tests fail

Helmut Grohne <[email protected]> Wed, 13 May 2026 13:41:49 +0200
Newsgroups gmane.linux.debian.apt.devel
Message-ID <20260513114149.GB281190__10657.4193037645$1778702506$gmane$org@subdivi.de>
Source: python-apt
Version: 3.1.0
Severity: serious
Tags: ftbfs

python-apt fails to build from source.

| ======================================================================
| ERROR: test_ararchive (test_paths.TestPath.test_ararchive)
| ----------------------------------------------------------------------
| Traceback (most recent call last):
|   File "/build/reproducible-path/python-apt-3.1.0/tests/test_paths.py", line 93, in test_ararchive
|     tar.extractall(self.dir_unicode)
|     ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
| apt_pkg.Error: E:Write error - write (9: Bad file descriptor)
| 
| ----------------------------------------------------------------------
| Ran 148 tests in 5.740s
| 
| FAILED (errors=1, skipped=2)
| E: pybuild pybuild:485: test: plugin custom failed with: exit code=1: env PYTHONPATH=/build/reproducible-path/python-apt-3.1.0/.pybuild/cpython3_3.13_apt/build python3.13 tests/test_all.py
| dh_auto_test: error: pybuild --test -i python{version} -p "3.14 3.13" --parallel=1 returned exit code 13
| make[1]: *** [debian/rules:48: override_dh_auto_test] Error 1
| make[1]: Leaving directory '/build/reproducible-path/python-apt-3.1.0'
| make: *** [debian/rules:17: binary] Error 2
| dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2

Reproducible builds show the same failure.

Helmut