python-apt fails to build with python 2.7.9 in trusty

Bug #1451531 reported by Matthias Klose
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-apt (Debian)
Fix Released
Unknown
python-apt (Ubuntu)
Fix Released
High
Unassigned

Bug Description

seen in a test rebuild:
https://launchpad.net/ubuntu/+archive/test-rebuild-20150317/+build/7080384

   debian/rules override_dh_auto_test
make[1]: Entering directory `/build/buildd/python-apt-0.9.3.5'
set -e; for python in python2.7 python3.4 ; do \
  $python tests/test_all.py -q || [ "linux" = "hurd" ]; \
 done;
[tests] Running on 2.7.9 (default, Apr 29 2015, 20:22:58) [GCC 4.8.4]
Using library_dir: '/build/buildd/python-apt-0.9.3.5/build/lib.linux-x86_64-2.7'======================================================================
FAIL: test_add_key_from_server_mitm (test_auth.TestAuthKeys)
Verify that the key fingerprint is verified after download
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-apt-0.9.3.5/tests/test_auth.py", line 216, in test_add_key_from_server_mitm
    cm.exception)
AssertionError: recv from 'hkp://localhost:19191' failed for '0101010178F7FE5C3E65D8AF8B48AD6246925553'

----------------------------------------------------------------------
Ran 88 tests in 15.236s

FAILED (failures=1)
make[1]: *** [override_dh_auto_test] Error 1

Revision history for this message
Julian Andres Klode (juliank) wrote :

Not sure what's happening, you might want to try rebuilding it, it's a GPG failure.

Revision history for this message
Mathew Hodson (mhodson) wrote :

I believe this is the same as this Debian bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=755342

It should be fixed in the package python-apt - 0.9.3.5ubuntu2

---------------
python-apt (0.9.3.5ubuntu2) trusty-proposed; urgency=medium

  * Do not only look at Release files, but look at InRelease files as well.
    Change the code to open Release and InRelease files with
    apt_pkg.open_maybe_clear_signed_file() which will ignore the signature if
    it exists. (LP: #1503979)
  * tests/test_auth.py: update for gnupg 1.4.18 (Closes: #755342)

 -- Brian Murray <email address hidden> Wed, 02 Dec 2015 10:51:58 -0800

tags: added: trusty
Changed in python-apt (Ubuntu):
status: Confirmed → Fix Released
Changed in python-apt (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.