fix test coverage condition (#1862)

This commit is contained in:
Ju4tCode 2023-03-29 19:00:25 +08:00 committed by GitHub
parent 6396a7558a
commit 9f707469da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 deletions

View File

@ -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

View File

@ -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