Skip to content

Commit b2a4c89

Browse files
committed
reformat errors and try and match the new one about loop_factory existing
1 parent 98a6f4e commit b2a4c89

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

tests/markers/test_invalid_arguments.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ async def test_anything():
6161
result.assert_outcomes(errors=1)
6262
result.stdout.fnmatch_lines(
6363
[
64-
"*ValueError: mark.asyncio accepts only keyword arguments 'loop_scope', 'loop_factory'*"
64+
"*ValueError: mark.asyncio accepts only a keyword arguments "
65+
"'loop_scope' or 'loop_factory'*"
6566
]
6667
)
6768

@@ -84,6 +85,7 @@ async def test_anything():
8485
result.assert_outcomes(errors=1)
8586
result.stdout.fnmatch_lines(
8687
[
87-
"*ValueError: mark.asyncio accepts only keyword arguments 'loop_scope', 'loop_factory'*"
88+
"*ValueError: mark.asyncio accepts only a keyword arguments "
89+
"'loop_scope' or 'loop_factory'*"
8890
]
8991
)

tests/modes/test_strict_mode.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,7 @@ async def test_anything(any_fixture):
163163
result.stdout.fnmatch_lines(
164164
[
165165
"*warnings summary*",
166-
(
167-
"test_strict_mode_marked_test_unmarked_fixture_warning.py::"
168-
"test_anything"
169-
),
166+
("test_strict_mode_marked_test_unmarked_fixture_warning.py::test_anything"),
170167
(
171168
"*/pytest_asyncio/plugin.py:*: PytestDeprecationWarning: "
172169
"asyncio test 'test_anything' requested async "

0 commit comments

Comments
 (0)