We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c30cef6 commit 7bd8ed6Copy full SHA for 7bd8ed6
tests/test_simple.py
@@ -257,7 +257,18 @@ def test_a():
257
"""
258
)
259
260
- result = testdir.runpytest_subprocess("--asyncio-mode=strict")
+ testdir.makefile(
261
+ ".ini",
262
+ pytest=dedent(
263
+ """\
264
+ [pytest]
265
+ asyncio_mode = strict
266
+ filterwarnings =
267
+ default
268
+ """
269
+ ),
270
+ )
271
+ result = testdir.runpytest_subprocess()
272
result.assert_outcomes(passed=1)
273
result.stdout.fnmatch_lines(
274
["*is marked with '@pytest.mark.asyncio' but it is not an async function.*"]
0 commit comments