X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=tests%2Ftest_parse_changes.py;h=50301f42b69c1b08d13cc461d9b8c152a3983feb;hb=88d460407bfbf9c0fb9b36451c585b5a5d8c19f2;hp=85a76948d193c5f4a8f4615eb71aa1fdc011236f;hpb=a4eef13f8450fe8b109f4fafc074d50f0fda0a7c;p=dak.git diff --git a/tests/test_parse_changes.py b/tests/test_parse_changes.py index 85a76948..50301f42 100755 --- a/tests/test_parse_changes.py +++ b/tests/test_parse_changes.py @@ -20,7 +20,7 @@ class ParseChangesTestCase(DakTestCase): pass except GpgException: pass - except InvalidDscError, actual_line: + except InvalidDscError as actual_line: if line is not None: assertEqual(actual_line, line) @@ -46,7 +46,7 @@ class ParseDscTestCase(ParseChangesTestCase): def test_4(self): # No blank lines at all - self.assertFails('dsc/4.dsc', -1, 1) + self.assertFails('dsc/4.dsc', -1, 1, 1) def test_5(self): # Extra blank line before signature body