#1146460 python-gnupg autopkg tests fail with setuptools v80

#1146460#5
Date:
2026-09-02 06:55:27 UTC
From:
To:
python-gnupg: autopkg tests fail with setuptools v80, however I'm not
sure that this is related to the new setuptools version.

[...]
351s
351s ======================================================================
351s FAIL: test_list_keys_after_generation
(test_gnupg.GPGTestCase.test_list_keys_after_generation)
351s Test that after key generation, the generated key is available
351s ----------------------------------------------------------------------
351s Traceback (most recent call last):
351s   File
"/tmp/autopkgtest.uX33Os/autopkgtest_tmp/build/test_gnupg.py", line 562,
in test_list_keys_after_generation
351s     self.assertTrue(is_list_with_len(public_keys, 1), '1-element
list expected')
351s
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
351s AssertionError: False is not true : 1-element list expected
351s
351s ----------------------------------------------------------------------
351s Ran 43 tests in 136.090s
351s
351s FAILED (failures=1, skipped=1)
351s <sys>:0: ResourceWarning: unclosed file <_io.BufferedReader name=7>
351s <sys>:0: ResourceWarning: unclosed file <_io.BufferedWriter name=4>
351s <sys>:0: ResourceWarning: unclosed file <_io.BufferedReader name=5>
351s E: pybuild pybuild:485: test: plugin pyproject failed with: exit
code=1: cd /tmp/autopkgtest.uX33Os/autopkgtest_tmp/build; python3.14 -m
unittest discover -v
351s pybuild-autopkgtest: error: pybuild --autopkgtest -i
python{version} -p "3.13 3.14" --parallel= returned exit code 13
351s make: *** [/tmp/SUvV68GcaE/run:4: pybuild-autopkgtest] Error 25

#1146460#16
Date:
2026-09-02 16:42:14 UTC
From:
To:
Control: retitle -1 python-gnupg: test_gnupg.GPGTestCase.test_list_keys_after_generation is flaky
Control: severity -1 normal
amd64
(https://ci.debian.net/packages/p/python-gnupg/testing/amd64/75067238/).
I think it must just be slightly flaky, but I didn't find any other
occurrences of this failure from a quick look through the history, so it
must be fairly rare.