fix warning line numbers in tests affected by typing changes
This commit is contained in:
parent
f784b97fca
commit
c6175e055f
|
@ -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",
|
||||
]
|
||||
)
|
||||
|
||||
|
|
|
@ -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: *",
|
||||
|
|
Loading…
Reference in New Issue