diff options
| author | Martin Pitt <martin.pitt@canonical.com> | 2012-11-20 09:52:18 +0100 |
|---|---|---|
| committer | Martin Pitt <martin.pitt@canonical.com> | 2012-11-20 09:52:18 +0100 |
| commit | 5b224ace5811c2cc9a1f5506072f04abbd7dc242 (patch) | |
| tree | dbf9dc06d0fc2af0afebedd48cf3c9b5c61fbf82 | |
| parent | 7fd512f22177d4745843d8d282cbb8a964915a21 (diff) | |
| download | python-apt-5b224ace5811c2cc9a1f5506072f04abbd7dc242.tar.gz | |
tests/test_auth.py: In test_add_key_from_server_mitm(), show the exception
if it does not match the expectation, so that this becomes possible to
debug.
| -rw-r--r-- | debian/changelog | 3 | ||||
| -rw-r--r-- | tests/test_auth.py | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index 6bfacedf..cce0d623 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,9 @@ python-apt (0.8.8ubuntu5) UNRELEASED; urgency=low * tests/*.py: Do not prepend None to sys.path, Python 3.3 redeems that with an unintelligible crash. + * tests/test_auth.py: In test_add_key_from_server_mitm(), show the exception + if it does not match the expectation, so that this becomes possible to + debug. -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 20 Nov 2012 09:43:36 +0100 diff --git a/tests/test_auth.py b/tests/test_auth.py index be7f41a6..7fb8160b 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -227,7 +227,7 @@ class TestAuthKeys(TestCase): "0101010178F7FE5C3E65D8AF8B48AD6246925553", "hkp://localhost:%d" % self.keyserver_port) self.assertTrue( - str(cm.exception).startswith("Fingerprints do not match")) + str(cm.exception).startswith("Fingerprints do not match"), cm.exception) def testAddKeyFromServer(self): """Install a GnuPG key from a remote server.""" |
