Become a bit stricter: do full-line pattern match, and update unit tests to capture the full error output

This commit is contained in:
Pim van Pelt
2022-03-22 15:10:40 +00:00
parent 7303adb74a
commit 7bf940be0a
6 changed files with 8 additions and 8 deletions

@ -68,7 +68,7 @@ class YAMLTest(unittest.TestCase):
for m in msgs:
this_msg_expected = False
for expected in msgs_expected:
if re.search(expected, m):
if re.match(expected, m):
this_msg_expected = True
break
if not this_msg_expected: