From 7ad2a9ba2374bd485509144102dbabac4e2e1f7f Mon Sep 17 00:00:00 2001 From: gooker_young Date: Sat, 20 Jun 2026 13:40:15 +0800 Subject: [PATCH] =?UTF-8?q?chore(pyproject.toml):=20=E9=85=8D=E7=BD=AEpyte?= =?UTF-8?q?st=E9=BB=98=E8=AE=A4=E5=BC=82=E6=AD=A5io=E5=BE=AA=E7=8E=AF?= =?UTF-8?q?=E4=BD=9C=E7=94=A8=E5=9F=9F=E4=B8=BAfunction?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为pytest工具添加异步io默认循环作用域的配置项,统一异步测试的循环生命周期 --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index cfdd930..391aeb8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -80,3 +80,6 @@ source = ["pyflowx"] exclude_lines = ["if TYPE_CHECKING:", "if __name__ == .__main__.:", "pragma: no cover", "raise NotImplementedError"] fail_under = 100 show_missing = true + +[tool.pytest.ini_options] +asyncio_default_fixture_loop_scope = "function"