gcc-changelog: Update test to match new error text
authorJonathan Wakely <jwakely@redhat.com>
Tue, 2 Jun 2020 10:41:28 +0000 (11:41 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 2 Jun 2020 10:43:09 +0000 (11:43 +0100)
contrib/ChangeLog:

* gcc-changelog/test_email.py (TestGccChangelog.test_long_lines):
Update expected error message.

contrib/gcc-changelog/test_email.py

index 158eb6513679a9cb201dab8e91b0cd5089d3ab9e..2465669786e0f0b7c6d567eb6ce31bfeffe334f7 100755 (executable)
@@ -176,7 +176,7 @@ class TestGccChangelog(unittest.TestCase):
     def test_long_lines(self):
         email = self.get_git_email('long-lines.patch')
         assert len(email.errors) == 1
-        assert email.errors[0].message == 'line limit exceeds 100 characters'
+        assert email.errors[0].message == 'line exceeds 100 character limit'
 
     def test_new_files(self):
         email = self.from_patch_glob('0030')