Skip to content

Commit

Permalink
setup/tests: set low bound for version of async-timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
pohmelie committed Oct 12, 2022
1 parent 3fedb7c commit d94a394
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ tests =
pytest-asyncio
pytest-cov
trustme
async_timeout
async_timeout >= 4.0.0
siosocks
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ async def client_paths_exists(self, *paths):
return False

async def __aenter__(self):
self.timeout.__enter__()
await self.timeout.__aenter__()
await self.server.start(host=self.host)
if self.connected:
await self.client.connect(self.server.server_host,
Expand All @@ -130,7 +130,7 @@ async def __aexit__(self, *exc_info):
await self.client.quit()
self.client.close()
await self.server.close()
self.timeout.__exit__(*exc_info)
await self.timeout.__aexit__(*exc_info)

return Factory

Expand Down

0 comments on commit d94a394

Please sign in to comment.