@@ -15,7 +15,7 @@ def test_a():
1515 """
1616 )
1717 )
18- result = pytester .runpytest ("--asyncio-mode=strict" , "-W default" )
18+ result = pytester .runpytest_subprocess ("--asyncio-mode=strict" , "-W default" )
1919 result .assert_outcomes (passed = 1 )
2020 result .stdout .fnmatch_lines (
2121 ["*is marked with '@pytest.mark.asyncio' but it is not an async function.*" ]
@@ -36,7 +36,7 @@ async def test_a():
3636 """
3737 )
3838 )
39- result = pytester .runpytest ("--asyncio-mode=strict" , "-W default" )
39+ result = pytester .runpytest_subprocess ("--asyncio-mode=strict" , "-W default" )
4040 result .assert_outcomes (xfailed = 1 , warnings = 1 )
4141 result .stdout .fnmatch_lines (
4242 ["*Tests based on asynchronous generators are not supported*" ]
@@ -54,7 +54,7 @@ async def test_a():
5454 """
5555 )
5656 )
57- result = pytester .runpytest ("--asyncio-mode=auto" , "-W default" )
57+ result = pytester .runpytest_subprocess ("--asyncio-mode=auto" , "-W default" )
5858 result .assert_outcomes (xfailed = 1 , warnings = 1 )
5959 result .stdout .fnmatch_lines (
6060 ["*Tests based on asynchronous generators are not supported*" ]
@@ -76,7 +76,7 @@ async def test_a(self):
7676 """
7777 )
7878 )
79- result = pytester .runpytest ("--asyncio-mode=strict" , "-W default" )
79+ result = pytester .runpytest_subprocess ("--asyncio-mode=strict" , "-W default" )
8080 result .assert_outcomes (xfailed = 1 , warnings = 1 )
8181 result .stdout .fnmatch_lines (
8282 ["*Tests based on asynchronous generators are not supported*" ]
@@ -96,7 +96,7 @@ async def test_a():
9696 """
9797 )
9898 )
99- result = pytester .runpytest ("--asyncio-mode=auto" , "-W default" )
99+ result = pytester .runpytest_subprocess ("--asyncio-mode=auto" , "-W default" )
100100 result .assert_outcomes (xfailed = 1 , warnings = 1 )
101101 result .stdout .fnmatch_lines (
102102 ["*Tests based on asynchronous generators are not supported*" ]
@@ -119,7 +119,7 @@ async def test_a():
119119 """
120120 )
121121 )
122- result = pytester .runpytest ("--asyncio-mode=strict" , "-W default" )
122+ result = pytester .runpytest_subprocess ("--asyncio-mode=strict" , "-W default" )
123123 result .assert_outcomes (xfailed = 1 , warnings = 1 )
124124 result .stdout .fnmatch_lines (
125125 ["*Tests based on asynchronous generators are not supported*" ]
@@ -139,7 +139,7 @@ async def test_a():
139139 """
140140 )
141141 )
142- result = pytester .runpytest ("--asyncio-mode=auto" , "-W default" )
142+ result = pytester .runpytest_subprocess ("--asyncio-mode=auto" , "-W default" )
143143 result .assert_outcomes (xfailed = 1 , warnings = 1 )
144144 result .stdout .fnmatch_lines (
145145 ["*Tests based on asynchronous generators are not supported*" ]
0 commit comments