run_project_tests: also change paths for DEPRECATION messages

Not just WARNING and ERROR
This commit is contained in:
Dylan Baker 2022-08-15 11:49:50 -07:00 committed by Eli Schwartz
parent 2fe07adc0e
commit 369c2660d0
1 changed files with 1 additions and 1 deletions

View File

@ -471,7 +471,7 @@ def _compare_output(expected: T.List[T.Dict[str, str]], output: str, desc: str)
sub = r'\\'
else:
sub = r'\\\\'
expected_line = re.sub(r'/(?=.*(WARNING|ERROR))', sub, expected_line)
expected_line = re.sub(r'/(?=.*(WARNING|ERROR|DEPRECATION))', sub, expected_line)
m = OutputMatch(how, expected_line, count)
if count == 0: