Fix error in newly introduced test_collecterror

Via https://github.com/pytest-dev/pytest/pull/6107.

(cherry picked from commit 1b9fbbfa195aa20c48574265935dc5e66b96ec16)
This commit is contained in:
MarcoGorelli 2019-11-03 16:48:06 +00:00 committed by Daniel Hahler
parent 3fb969897a
commit 9303de877a
1 changed files with 2 additions and 2 deletions

View File

@ -1781,13 +1781,13 @@ def test_collecterror(testdir):
result = testdir.runpytest("-ra", str(p1)) result = testdir.runpytest("-ra", str(p1))
result.stdout.fnmatch_lines( result.stdout.fnmatch_lines(
[ [
"collected 0 items / 1 errors", "collected 0 items / 1 error",
"*= ERRORS =*", "*= ERRORS =*",
"*_ ERROR collecting test_collecterror.py _*", "*_ ERROR collecting test_collecterror.py _*",
"E SyntaxError: *", "E SyntaxError: *",
"*= short test summary info =*", "*= short test summary info =*",
"ERROR test_collecterror.py", "ERROR test_collecterror.py",
"*! Interrupted: 1 errors during collection !*", "*! Interrupted: 1 error during collection !*",
"*= 1 error in *", "*= 1 error in *",
] ]
) )