From 9f707469da7dd1fbd972c0ccad4a68af312f1b72 Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Wed, 29 Mar 2023 19:00:25 +0800 Subject: [PATCH] :white_check_mark: fix test coverage condition (#1862) --- nonebot/drivers/none.py | 1 - tests/.coveragerc | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/nonebot/drivers/none.py b/nonebot/drivers/none.py index 029c849e..6ddf7ac8 100644 --- a/nonebot/drivers/none.py +++ b/nonebot/drivers/none.py @@ -19,7 +19,6 @@ from nonebot.consts import WINDOWS from nonebot.typing import overrides from nonebot.config import Env, Config from nonebot.drivers import Driver as BaseDriver -from nonebot.utils import run_sync, is_coroutine_callable from ._lifespan import LIFESPAN_FUNC, Lifespan diff --git a/tests/.coveragerc b/tests/.coveragerc index 8f3134a9..d421f4b4 100644 --- a/tests/.coveragerc +++ b/tests/.coveragerc @@ -17,9 +17,9 @@ exclude_lines = [coverage_conditional_plugin] rules = - "sys_platform == 'win32'": py-win32 - "sys_platform == 'linux'": py-linux - "sys_platform == 'darwin'": py-darwin - "sys_version_info >= (3, 9)": py-gte-39 - "sys_version_info >= (3, 11)": py-gte-311 - "sys_version_info < (3, 11)": py-lt-311 + "sys_platform != 'win32'": py-win32 + "sys_platform != 'linux'": py-linux + "sys_platform != 'darwin'": py-darwin + "sys_version_info < (3, 9)": py-gte-39 + "sys_version_info < (3, 11)": py-gte-311 + "sys_version_info >= (3, 11)": py-lt-311