Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
[pytest]
asyncio_mode = auto
# pytest-asyncio 1.x changed the default fixture loop scope. With it
# unset, pytest-asyncio 1.x emits a deprecation warning and the
# session-scoped fixtures bind to a different event loop than the
# per-test functions, producing "another operation is in progress"
# (asyncpg) and "attached to a different loop" (asyncio) errors.
# Pinning the scope explicitly keeps pytest-asyncio 0.24.x and 1.x
# behaviorally identical and unblocks the Dependabot pytest-asyncio
# 1.3.0 bump (#40).
asyncio_default_fixture_loop_scope = function
Loading