Skip to content

Commit 7bd8ed6

Browse files
committed
Fix test on py3.7 and pytest 6.1.0
1 parent c30cef6 commit 7bd8ed6

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

tests/test_simple.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,18 @@ def test_a():
257257
"""
258258
)
259259
)
260-
result = testdir.runpytest_subprocess("--asyncio-mode=strict")
260+
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()
261272
result.assert_outcomes(passed=1)
262273
result.stdout.fnmatch_lines(
263274
["*is marked with '@pytest.mark.asyncio' but it is not an async function.*"]

0 commit comments

Comments
 (0)