Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement web.run_app utility function #734

Merged
merged 20 commits into from
Jan 13, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Skip failing test on Python 3.4
asvetlov committed Jan 12, 2016
commit 635599c28c0e5f3e6655ced4462cd17275210b6d
4 changes: 4 additions & 0 deletions tests/test_run_app.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import asyncio
import pytest
import ssl
import sys

from unittest import mock
from aiohttp import web
@@ -56,7 +57,10 @@ def test_run_app_nondefault_host_port(loop, unused_port):
loop.create_server.assert_called_with(mock.ANY, host, port, ssl=None)


@pytest.mark.skipIf(sys.version_info < (3, 5))
def test_run_app_default_eventloop(loop, unused_port):
# Python 3.4 fails on running in debug mode if loop is wrapped by mock

loop = mock.Mock(spec=asyncio.AbstractEventLoop, wrap=loop)

asyncio.set_event_loop(loop)