diff --git a/testing/python/fixtures.py b/testing/python/fixtures.py index 448804101..9f08ec22d 100644 --- a/testing/python/fixtures.py +++ b/testing/python/fixtures.py @@ -4405,7 +4405,7 @@ def test_fixture_named_request(pytester: Pytester) -> None: result.stdout.fnmatch_lines( [ "*'request' is a reserved word for fixtures, use another name:", - " *test_fixture_named_request.py:5", + " *test_fixture_named_request.py:7", ] ) diff --git a/testing/test_warnings.py b/testing/test_warnings.py index 46e814645..f70bd26b2 100644 --- a/testing/test_warnings.py +++ b/testing/test_warnings.py @@ -622,11 +622,11 @@ def test_group_warnings_by_message_summary(pytester: Pytester) -> None: "*== %s ==*" % WARNINGS_SUMMARY_HEADER, "test_1.py: 21 warnings", "test_2.py: 1 warning", - " */test_1.py:7: UserWarning: foo", + " */test_1.py:9: UserWarning: foo", " warnings.warn(UserWarning(msg))", "", "test_1.py: 20 warnings", - " */test_1.py:7: UserWarning: bar", + " */test_1.py:9: UserWarning: bar", " warnings.warn(UserWarning(msg))", "", "-- Docs: *",