fix warning line numbers in tests affected by typing changes

This commit is contained in:
Ronny Pfannschmidt 2023-05-13 14:13:31 +02:00
parent f784b97fca
commit c6175e055f
2 changed files with 3 additions and 3 deletions

View File

@ -4405,7 +4405,7 @@ def test_fixture_named_request(pytester: Pytester) -> None:
result.stdout.fnmatch_lines( result.stdout.fnmatch_lines(
[ [
"*'request' is a reserved word for fixtures, use another name:", "*'request' is a reserved word for fixtures, use another name:",
" *test_fixture_named_request.py:5", " *test_fixture_named_request.py:7",
] ]
) )

View File

@ -622,11 +622,11 @@ def test_group_warnings_by_message_summary(pytester: Pytester) -> None:
"*== %s ==*" % WARNINGS_SUMMARY_HEADER, "*== %s ==*" % WARNINGS_SUMMARY_HEADER,
"test_1.py: 21 warnings", "test_1.py: 21 warnings",
"test_2.py: 1 warning", "test_2.py: 1 warning",
" */test_1.py:7: UserWarning: foo", " */test_1.py:9: UserWarning: foo",
" warnings.warn(UserWarning(msg))", " warnings.warn(UserWarning(msg))",
"", "",
"test_1.py: 20 warnings", "test_1.py: 20 warnings",
" */test_1.py:7: UserWarning: bar", " */test_1.py:9: UserWarning: bar",
" warnings.warn(UserWarning(msg))", " warnings.warn(UserWarning(msg))",
"", "",
"-- Docs: *", "-- Docs: *",