Improve display of continuation lines with multiline errors
Fixes https://github.com/pytest-dev/pytest/issues/717. Follow-up to https://github.com/pytest-dev/pytest/pull/1762.
This commit is contained in:
@@ -395,10 +395,11 @@ class TestFillFixtures:
|
||||
""")
|
||||
result = testdir.runpytest()
|
||||
result.stdout.fnmatch_lines([
|
||||
"*ERROR*test_lookup_error*",
|
||||
"*def test_lookup_error(unknown):*",
|
||||
"*fixture*unknown*not found*",
|
||||
"*available fixtures*",
|
||||
"*ERROR at setup of test_lookup_error*",
|
||||
" def test_lookup_error(unknown):*",
|
||||
"E fixture 'unknown' not found",
|
||||
"> available fixtures:*",
|
||||
"> use 'py*test --fixtures *' for help on them.",
|
||||
"*1 error*",
|
||||
])
|
||||
assert "INTERNAL" not in result.stdout.str()
|
||||
|
||||
Reference in New Issue
Block a user