Skip to content

Commit a14e7ef

Browse files
committed
fix: change asyncio fixture loop scope to function for CI compatibility - Fixes RuntimeError in pytest-asyncio 0.26.0 on Python 3.11 - Ensures event loop is created per test function instead of per session
1 parent b03c393 commit a14e7ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[pytest]
22
addopts = -v --tb=short --strict-markers
33
asyncio_mode = auto
4-
asyncio_default_fixture_loop_scope = session
4+
asyncio_default_fixture_loop_scope = function
55
testpaths = tests
66
python_files = test_*.py
77
python_classes = Test*

0 commit comments

Comments
 (0)