Add sanic as an entry point command (#1866)

* Add sanic as an entry point command

* Fix linting issue in imports

Co-authored-by: 7 <yunxu1992@gmail.com>
This commit is contained in:
Adam Hopkins
2020-06-05 17:14:18 +03:00
committed by GitHub
parent fa4f85eb32
commit 496e87e4ba
15 changed files with 66 additions and 47 deletions

View File

@@ -84,8 +84,8 @@ def test_listeners_triggered(app):
all_tasks = (
asyncio.Task.all_tasks()
if sys.version_info < (3, 7) else
asyncio.all_tasks(asyncio.get_event_loop())
if sys.version_info < (3, 7)
else asyncio.all_tasks(asyncio.get_event_loop())
)
for task in all_tasks:
task.cancel()
@@ -134,8 +134,8 @@ def test_listeners_triggered_async(app):
all_tasks = (
asyncio.Task.all_tasks()
if sys.version_info < (3, 7) else
asyncio.all_tasks(asyncio.get_event_loop())
if sys.version_info < (3, 7)
else asyncio.all_tasks(asyncio.get_event_loop())
)
for task in all_tasks:
task.cancel()