Skip to content

Commit

Permalink
fix warning line numbers in tests affected by typing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
RonnyPfannschmidt committed Jun 17, 2024
1 parent f784b97 commit c6175e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion testing/python/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
)

Expand Down
4 changes: 2 additions & 2 deletions testing/test_warnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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: *",
Expand Down

0 comments on commit c6175e0

Please sign in to comment.