@@ -15,7 +15,7 @@ def test_a():
15
15
"""
16
16
)
17
17
)
18
- result = pytester .runpytest ("--asyncio-mode=strict" , "-W default" )
18
+ result = pytester .runpytest_subprocess ("--asyncio-mode=strict" , "-W default" )
19
19
result .assert_outcomes (passed = 1 )
20
20
result .stdout .fnmatch_lines (
21
21
["*is marked with '@pytest.mark.asyncio' but it is not an async function.*" ]
@@ -36,7 +36,7 @@ async def test_a():
36
36
"""
37
37
)
38
38
)
39
- result = pytester .runpytest ("--asyncio-mode=strict" , "-W default" )
39
+ result = pytester .runpytest_subprocess ("--asyncio-mode=strict" , "-W default" )
40
40
result .assert_outcomes (xfailed = 1 , warnings = 1 )
41
41
result .stdout .fnmatch_lines (
42
42
["*Tests based on asynchronous generators are not supported*" ]
@@ -54,7 +54,7 @@ async def test_a():
54
54
"""
55
55
)
56
56
)
57
- result = pytester .runpytest ("--asyncio-mode=auto" , "-W default" )
57
+ result = pytester .runpytest_subprocess ("--asyncio-mode=auto" , "-W default" )
58
58
result .assert_outcomes (xfailed = 1 , warnings = 1 )
59
59
result .stdout .fnmatch_lines (
60
60
["*Tests based on asynchronous generators are not supported*" ]
@@ -76,7 +76,7 @@ async def test_a(self):
76
76
"""
77
77
)
78
78
)
79
- result = pytester .runpytest ("--asyncio-mode=strict" , "-W default" )
79
+ result = pytester .runpytest_subprocess ("--asyncio-mode=strict" , "-W default" )
80
80
result .assert_outcomes (xfailed = 1 , warnings = 1 )
81
81
result .stdout .fnmatch_lines (
82
82
["*Tests based on asynchronous generators are not supported*" ]
@@ -96,7 +96,7 @@ async def test_a():
96
96
"""
97
97
)
98
98
)
99
- result = pytester .runpytest ("--asyncio-mode=auto" , "-W default" )
99
+ result = pytester .runpytest_subprocess ("--asyncio-mode=auto" , "-W default" )
100
100
result .assert_outcomes (xfailed = 1 , warnings = 1 )
101
101
result .stdout .fnmatch_lines (
102
102
["*Tests based on asynchronous generators are not supported*" ]
@@ -119,7 +119,7 @@ async def test_a():
119
119
"""
120
120
)
121
121
)
122
- result = pytester .runpytest ("--asyncio-mode=strict" , "-W default" )
122
+ result = pytester .runpytest_subprocess ("--asyncio-mode=strict" , "-W default" )
123
123
result .assert_outcomes (xfailed = 1 , warnings = 1 )
124
124
result .stdout .fnmatch_lines (
125
125
["*Tests based on asynchronous generators are not supported*" ]
@@ -139,7 +139,7 @@ async def test_a():
139
139
"""
140
140
)
141
141
)
142
- result = pytester .runpytest ("--asyncio-mode=auto" , "-W default" )
142
+ result = pytester .runpytest_subprocess ("--asyncio-mode=auto" , "-W default" )
143
143
result .assert_outcomes (xfailed = 1 , warnings = 1 )
144
144
result .stdout .fnmatch_lines (
145
145
["*Tests based on asynchronous generators are not supported*" ]
0 commit comments