From 5d16e033da495dd835d9a870b82f77a6486b4f14 Mon Sep 17 00:00:00 2001 From: Sebastian Heinlein Date: Wed, 6 Jun 2012 12:58:43 +0200 Subject: Don't compare the headers in the export test --- tests/test_auth.py | 7 +++++-- 1 file 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 -- cgit v1.2.3