Skip to content

Commit 7084940

Browse files
committed
fix tests after message change
1 parent f434c27 commit 7084940

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

testing/acceptance_test.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,10 +1311,9 @@ def test_foo(async_fixture):
13111311
"*PytestRemovedIn9Warning: 'test_foo' requested an async "
13121312
"fixture 'async_fixture', with no plugin or hook that handled it. "
13131313
"This is usually an error, as pytest does not natively support it. "
1314-
"If this is intentional, consider making the fixture sync and return "
1315-
"a coroutine/asyncgen. "
13161314
"This will turn into an error in pytest 9."
13171315
),
1316+
" See: https://docs.pytest.org/en/stable/deprecations.html#sync-test-depending-on-async-fixture",
13181317
]
13191318
)
13201319
result.assert_outcomes(passed=1, warnings=1)
@@ -1342,10 +1341,9 @@ def test_foo(async_fixture):
13421341
"*PytestRemovedIn9Warning: 'test_foo' requested an async "
13431342
"fixture 'async_fixture', with no plugin or hook that handled it. "
13441343
"This is usually an error, as pytest does not natively support it. "
1345-
"If this is intentional, consider making the fixture sync and return "
1346-
"a coroutine/asyncgen. "
13471344
"This will turn into an error in pytest 9."
13481345
),
1346+
" See: https://docs.pytest.org/en/stable/deprecations.html#sync-test-depending-on-async-fixture",
13491347
]
13501348
)
13511349
result.assert_outcomes(passed=1, warnings=1)
@@ -1376,11 +1374,11 @@ def test_foo(async_fixture):
13761374
(
13771375
"*PytestRemovedIn9Warning: 'test_foo' requested an async "
13781376
"fixture 'async_fixture' with autouse=True, with no plugin or hook "
1379-
"that handled it. This is usually an error, as pytest does not "
1380-
"natively support it. If this is intentional, consider making the "
1381-
"fixture sync and return a coroutine/asyncgen. "
1377+
"that handled it. "
1378+
"This is usually an error, as pytest does not natively support it. "
13821379
"This will turn into an error in pytest 9."
13831380
),
1381+
" See: https://docs.pytest.org/en/stable/deprecations.html#sync-test-depending-on-async-fixture",
13841382
]
13851383
)
13861384
result.assert_outcomes(passed=1, warnings=1)

0 commit comments

Comments
 (0)