Skip to content

Commit 12d3ce1

Browse files
committed
Merge branch 'fix-pytest-raises-error-v3' of https://github.com/dariomesic/pytest into fix-pytest-raises-error-v3
2 parents 3375cb6 + f96d209 commit 12d3ce1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

testing/code/test_excinfo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -442,9 +442,9 @@ def test_division_zero():
442442
assert result.ret != 0
443443

444444
match = [
445-
r"E .* AssertionError: Regex pattern did not match.",
446-
r"E Expected regex: '\[123\]\+'",
447-
r"E Actual message: 'division by zero'",
445+
r"E\s+AssertionError: Regex pattern did not match.",
446+
r"E\s+Expected regex: '\[123\]\+'",
447+
r"E\s+Actual message: 'division by zero'",
448448
]
449449
result.stdout.re_match_lines(match)
450450
result.stdout.no_fnmatch_line("*__tracebackhide__ = True*")

0 commit comments

Comments
 (0)