Skip to content

Commit

Permalink
Merge 01df9a3 into 4d82721
Browse files Browse the repository at this point in the history
  • Loading branch information
vxgmichel committed Oct 25, 2018
2 parents 4d82721 + 01df9a3 commit b7e69f1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Expand Up @@ -8,9 +8,9 @@ matrix:
- python: 3.7
dist: xenial
sudo: true
# - python: 3.8-dev
# dist: xenial
# sudo: true
- python: 3.8-dev
dist: xenial
sudo: true

install: pip install -U coveralls pytest
script: python setup.py test
Expand Down
8 changes: 7 additions & 1 deletion tests/test_server.py
Expand Up @@ -2,6 +2,7 @@

import pytest

from aioconsole import compat
from aioconsole.server import start_console_server


Expand All @@ -14,5 +15,10 @@ def test_server(event_loop):
assert (yield from reader.readline()) == b'test\n'
writer.write(b'1+1\n')
assert (yield from reader.readline()) == b'>>> 2\n'
writer.write_eof()
assert (yield from reader.readline()) == b'>>> \n'
writer.close()
assert (yield from reader.readline()) == b'>>> '
if compat.PY37:
yield from writer.wait_closed()
server.close()
yield from server.wait_closed()

0 comments on commit b7e69f1

Please sign in to comment.