Skip to content

The only downloader you need. 下载器的集大成者。

fix(test): 显式设置 asyncio_default_fixture_loop_scope,pytest-asyncio 1.4.1.post1 未设置时报错

XiaoYouChRd62bb3dd44dd
diff --git a/pyproject.toml b/pyproject.toml
index a80b0597..b3fdc5d5 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -39,6 +39,7 @@ dev = [
[tool.pytest.ini_options]
pythonpath = [".", "features"]
asyncio_mode = "auto"
+asyncio_default_fixture_loop_scope = "function"
qt_api = "pyside6"
testpaths = ["tests"]
addopts = "--strict-markers --strict-config"