@@ -1311,10 +1311,9 @@ def test_foo(async_fixture):
1311
1311
"*PytestRemovedIn9Warning: 'test_foo' requested an async "
1312
1312
"fixture 'async_fixture', with no plugin or hook that handled it. "
1313
1313
"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. "
1316
1314
"This will turn into an error in pytest 9."
1317
1315
),
1316
+ " See: https://docs.pytest.org/en/stable/deprecations.html#sync-test-depending-on-async-fixture" ,
1318
1317
]
1319
1318
)
1320
1319
result .assert_outcomes (passed = 1 , warnings = 1 )
@@ -1342,10 +1341,9 @@ def test_foo(async_fixture):
1342
1341
"*PytestRemovedIn9Warning: 'test_foo' requested an async "
1343
1342
"fixture 'async_fixture', with no plugin or hook that handled it. "
1344
1343
"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. "
1347
1344
"This will turn into an error in pytest 9."
1348
1345
),
1346
+ " See: https://docs.pytest.org/en/stable/deprecations.html#sync-test-depending-on-async-fixture" ,
1349
1347
]
1350
1348
)
1351
1349
result .assert_outcomes (passed = 1 , warnings = 1 )
@@ -1376,11 +1374,11 @@ def test_foo(async_fixture):
1376
1374
(
1377
1375
"*PytestRemovedIn9Warning: 'test_foo' requested an async "
1378
1376
"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. "
1382
1379
"This will turn into an error in pytest 9."
1383
1380
),
1381
+ " See: https://docs.pytest.org/en/stable/deprecations.html#sync-test-depending-on-async-fixture" ,
1384
1382
]
1385
1383
)
1386
1384
result .assert_outcomes (passed = 1 , warnings = 1 )
0 commit comments