From dbda95c0c9d87d1eb9c1384baf9a5cae43a52060 Mon Sep 17 00:00:00 2001 From: felinae98 <731499577@qq.com> Date: Mon, 10 Oct 2022 22:53:29 +0800 Subject: [PATCH] fixup! use deprecation marker for legacy db fix test --- tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index c76550b..7462e8a 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -60,7 +60,7 @@ async def use_legacy_config(app: App): import aiofiles from nonebot_bison.config.config_legacy import config, get_config_path - async with aiofiles.open(get_config_path(), "w") as f: + async with aiofiles.open(get_config_path()[0], "w") as f: await f.write("{}") config._do_init()