Fix line offsets with ScopeMismatch errors

Fixes https://github.com/pytest-dev/pytest/issues/4928.
This commit is contained in:
Daniel Hahler
2019-03-15 02:47:06 +01:00
parent 158432217c
commit d441fa66fe
3 changed files with 4 additions and 3 deletions

View File

@@ -992,8 +992,8 @@ class TestFixtureUsages(object):
result.stdout.fnmatch_lines(
[
"*ScopeMismatch*involved factories*",
"* def arg2*",
"* def arg1*",
"test_receives_funcargs_scope_mismatch.py:6: def arg2(arg1)",
"test_receives_funcargs_scope_mismatch.py:2: def arg1()",
"*1 error*",
]
)