Skip to content

Commit ce1f164

Browse files
authored
Fix pytest-asyncio DeprecationWarning (#523)
1 parent b3da995 commit ce1f164

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ testpaths = ["tests"]
6262
norecursedirs = ["fixtures"]
6363
console_output_style = "count"
6464
log_level = "NOTSET"
65-
asyncio_mode = "auto" # https://github.com/pytest-dev/pytest-asyncio#modes
65+
# https://pytest-asyncio.readthedocs.io/en/latest/reference/configuration.html
66+
asyncio_mode = "auto"
67+
asyncio_default_fixture_loop_scope = "function"
6668

6769
[tool.mypy]
6870
# https://mypy.readthedocs.io/en/stable/config_file.html

0 commit comments

Comments
 (0)