summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Heinlein <devel@glatzor.de>2012-06-06 12:58:43 +0200
committerSebastian Heinlein <devel@glatzor.de>2012-06-06 12:58:43 +0200
commit5d16e033da495dd835d9a870b82f77a6486b4f14 (patch)
treea7d06ab1cfa9927a1be4fdf19fe3ea7a5629d280
parent6f8b10fe939609a1afc8de057813e1d43bc47558 (diff)
downloadpython-apt-5d16e033da495dd835d9a870b82f77a6486b4f14.tar.gz
Don't compare the headers in the export test
-rw-r--r--tests/test_auth.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/test_auth.py b/tests/test_auth.py
index fc37830d..f975c670 100644
--- a/tests/test_auth.py
+++ b/tests/test_auth.py
@@ -136,8 +136,11 @@ class TestAuthKeys(unittest.TestCase):
def testAddAndExportKey(self):
"""Add an example key."""
apt.auth.add_key(WHEEZY_KEY)
- self.assertEqual(apt.auth.export_key("46925553"),
- WHEEZY_KEY)
+ # Strip the headers from the keys to avoid test errors because
+ # the exported key used a differenct GnuPG version than the
+ # original example key
+ self.assertEqual(apt.auth.export_key("46925553").split("\n")[2:],
+ WHEEZY_KEY.split("\n")[2:])
def testAddAndListKey(self):
"""Add an example key and test if it is correctly returned by