Skip to content

Commit

Permalink
Cleanup ASGI failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ahopkins committed Jan 11, 2022
1 parent 23c336e commit bba045e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
19 changes: 0 additions & 19 deletions tests/test_asgi.py
@@ -1,6 +1,3 @@
import asyncio
import sys

from collections import deque, namedtuple

import pytest
Expand Down Expand Up @@ -82,14 +79,6 @@ def install_signal_handlers(self):
with pytest.warns(UserWarning):
server.run()

all_tasks = (
asyncio.Task.all_tasks()
if sys.version_info < (3, 7)
else asyncio.all_tasks(asyncio.get_event_loop())
)
for task in all_tasks:
task.cancel()

assert before_server_start
assert after_server_start
assert before_server_stop
Expand Down Expand Up @@ -132,14 +121,6 @@ def install_signal_handlers(self):
with pytest.warns(UserWarning):
server.run()

all_tasks = (
asyncio.Task.all_tasks()
if sys.version_info < (3, 7)
else asyncio.all_tasks(asyncio.get_event_loop())
)
for task in all_tasks:
task.cancel()

assert before_server_start
assert after_server_start
assert before_server_stop
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -20,7 +20,7 @@ deps =
beautifulsoup4
gunicorn==20.0.4
uvicorn
websockets>=8.1,<9.0
websockets>=8.1,<=9.1
commands =
pytest {posargs:tests --cov sanic}
- coverage combine --append
Expand Down

0 comments on commit bba045e

Please sign in to comment.