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:
Daniel Hahler
2016-08-12 00:57:29 +02:00
parent 34925a31a9
commit c163cc7937
3 changed files with 19 additions and 15 deletions

View File

@@ -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()