diff --git a/testing/code/test_excinfo.py b/testing/code/test_excinfo.py index c72b87428..23b0a985e 100644 --- a/testing/code/test_excinfo.py +++ b/testing/code/test_excinfo.py @@ -64,7 +64,7 @@ def test_excinfo_getstatement(): f() except ValueError: excinfo = _pytest._code.ExceptionInfo() - linenumbers = [_pytest._code.getrawcode(f).co_firstlineno - 1 + 3, + linenumbers = [_pytest._code.getrawcode(f).co_firstlineno - 1 + 4, _pytest._code.getrawcode(f).co_firstlineno - 1 + 1, _pytest._code.getrawcode(g).co_firstlineno - 1 + 1, ] l = list(excinfo.traceback)