make individual coverage checker happy

This commit is contained in:
Maximilian Hils 2020-11-21 20:19:47 +01:00
parent 9b0c4e2338
commit bce8bf5f81
2 changed files with 2 additions and 2 deletions

View File

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

View File

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