From f5b045598b52c83b2d9e3f906e9629c54aaf6500 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Fri, 20 May 2011 17:06:32 +0000 Subject: [PATCH] tests/test_parse_changes.py: update for new SignedFile exceptions Signed-off-by: Ansgar Burchardt --- tests/test_parse_changes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_parse_changes.py b/tests/test_parse_changes.py index 797ba99c..38f653d0 100755 --- a/tests/test_parse_changes.py +++ b/tests/test_parse_changes.py @@ -4,12 +4,13 @@ from base_test import DakTestCase, fixture import unittest +from daklib.gpg import GpgException from daklib.utils import parse_changes from daklib.dak_exceptions import InvalidDscError, ParseChangesError class ParseChangesTestCase(DakTestCase): def assertParse(self, filename, *args): - return parse_changes(fixture(filename), *args) + return parse_changes(fixture(filename), *args, keyrings=()) def assertFails(self, filename, line=None, *args): try: @@ -17,6 +18,8 @@ class ParseChangesTestCase(DakTestCase): self.fail('%s was not recognised as invalid' % filename) except ParseChangesError: pass + except GpgException: + pass except InvalidDscError, actual_line: if line is not None: assertEqual(actual_line, line) -- 2.39.5