@@ -87,7 +87,7 @@ async def test_warns():
8787 """
8888 )
8989 )
90- result = pytester .runpytest_subprocess ("--asyncio-mode=strict" )
90+ result = pytester .runpytest ("--asyncio-mode=strict" , "--assert=plain " )
9191 result .assert_outcomes (passed = 1 , warnings = 1 )
9292 result .stdout .fnmatch_lines ("*DeprecationWarning*" )
9393
@@ -157,7 +157,7 @@ async def test_parametrized_loop():
157157 """
158158 )
159159 )
160- result = pytester .runpytest_subprocess ("--asyncio-mode=strict" )
160+ result = pytester .runpytest ("--asyncio-mode=strict" )
161161 result .assert_outcomes (passed = 2 )
162162
163163
@@ -188,7 +188,7 @@ async def test_runs_is_same_loop_as_fixture(my_fixture):
188188 """
189189 )
190190 )
191- result = pytester .runpytest_subprocess ("--asyncio-mode=strict" )
191+ result = pytester .runpytest ("--asyncio-mode=strict" )
192192 result .assert_outcomes (passed = 1 )
193193
194194
@@ -242,7 +242,7 @@ async def test_anything():
242242 """
243243 )
244244 )
245- result = pytester .runpytest_subprocess ("--asyncio-mode=strict" )
245+ result = pytester .runpytest ("--asyncio-mode=strict" , "--assert=plain " )
246246 result .assert_outcomes (warnings = 0 , passed = 1 )
247247
248248
@@ -274,5 +274,5 @@ async def test_markers_not_duplicated(request):
274274 """
275275 )
276276 )
277- result = pytester .runpytest_subprocess ("--asyncio-mode=auto" )
277+ result = pytester .runpytest ("--asyncio-mode=auto" , "--assert=plain " )
278278 result .assert_outcomes (warnings = 0 , passed = 1 )
0 commit comments