Skip to content

Commit 2d6e4d3

Browse files
author
Maxim Tulskiy
committed
tests: add pytest.ini to set asyncio_default_fixture_loop_scope
Recent versions of pytest-asyncio emit a deprecation warning when the 'asyncio_default_fixture_loop_scope' option is unset. This can break tests using pytester by preventing pytest from generating a terminal summary. This commit adds a pytest.ini file with 'asyncio_default_fixture_loop_scope = function' to prevent the warning, ensuring that tests run reliably and the pytest output is stable. Signed-off-by: Maxim Tulskiy <tulskijms@altlinux.org>
1 parent af36e10 commit 2d6e4d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pytest.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[pytest]
2+
asyncio_default_fixture_loop_scope = function

0 commit comments

Comments
 (0)