Skip to content

Commit d60e406

Browse files
committed
Close the loop on every async test function
This helps detecting issues with cleanup in the place where they happen. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 99f1aab commit d60e406

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ disable = [
173173
[tool.pytest.ini_options]
174174
addopts = "-W=all -Werror -Wdefault::DeprecationWarning -Wdefault::PendingDeprecationWarning -vv"
175175
testpaths = ["tests", "src"]
176+
asyncio_default_fixture_loop_scope = "function"
176177
asyncio_mode = "auto"
177178
required_plugins = ["pytest-asyncio", "pytest-mock"]
178179

0 commit comments

Comments
 (0)