Skip to content

Commit

Permalink
Fix type asserting
Browse files Browse the repository at this point in the history
  • Loading branch information
denismakogon committed Jan 15, 2019
1 parent b89c533 commit 0242bc9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_app.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import asyncio
import logging

from asyncio import base_events as asyncio_base_events

from inspect import isawaitable
import pytest

Expand All @@ -23,7 +25,7 @@ def test_create_asyncio_server(app):
asyncio_srv_coro = app.create_server(return_asyncio_server=True)
assert isawaitable(asyncio_srv_coro)
srv = loop.run_until_complete(asyncio_srv_coro)
assert isinstance(srv, asyncio.AbstractServer)
assert isinstance(srv, asyncio_base_events.Server)


def test_asyncio_server_start_serving(app):
Expand Down

0 comments on commit 0242bc9

Please sign in to comment.