mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 15:37:45 +00:00
make individual coverage checker happy
This commit is contained in:
parent
9b0c4e2338
commit
bce8bf5f81
@ -11,7 +11,7 @@ def cancel_task(task: asyncio.Task, message: str) -> None:
|
||||
"""Like task.cancel(), but optionally with a message if the Python version supports it."""
|
||||
if sys.version_info >= (3, 9):
|
||||
task.cancel(message) # type: ignore
|
||||
else:
|
||||
else: # pragma: no cover
|
||||
task.cancel()
|
||||
|
||||
|
||||
|
@ -24,7 +24,7 @@ def test_dump_info():
|
||||
async def test_dump_info_async():
|
||||
cs = io.StringIO()
|
||||
debug.dump_info(None, None, file=cs, testing=True)
|
||||
if sys.version_info >= (3,8):
|
||||
if sys.version_info >= (3, 8):
|
||||
assert "Tasks" in cs.getvalue()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user