Become a bit stricter: do full-line pattern match, and update unit tests to capture the full error output
This commit is contained in:
2
tests.py
2
tests.py
@ -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:
|
||||
|
Reference in New Issue
Block a user