Skip to content

Commit

Permalink
python3.5 support
Browse files Browse the repository at this point in the history
  • Loading branch information
mosquito committed May 7, 2020
1 parent 1ef61af commit 20e662d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions requirements.dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
aiohttp<4
async-timeout
async-generator
coverage==4.5.1
coveralls
pylava
Expand Down
4 changes: 3 additions & 1 deletion tests/pytest_plugin/test_tcp_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import time

import pytest
from async_generator import async_generator, yield_

import aiomisc

Expand Down Expand Up @@ -44,11 +45,12 @@ def services(service: HashServer):


@pytest.fixture()
@async_generator
async def proxy(tcp_proxy, localhost, server_port):
proxy = tcp_proxy(localhost, server_port)

try:
yield proxy
await yield_(proxy)
finally:
await asyncio.wait_for(proxy.close(), timeout=1)

Expand Down

0 comments on commit 20e662d

Please sign in to comment.