Update tests/conftest.py

Co-Authored-By: NIC Lin <twedusuck@gmail.com>
This commit is contained in:
Kevin Mai-Husan Chia 2019-08-31 22:32:43 +08:00 committed by GitHub
parent 1e59438f25
commit 9e8a6bdf29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ async def hosts(num_hosts, is_host_secure):
yield _hosts
finally:
# TODO: It's possible that `close` raises exceptions currently,
# due to the connection reset things. Though we are not so careful about that when
# due to the connection reset things. Though we don't care much about that when
# cleaning up the tasks, it is probably better to handle the exceptions properly.
await asyncio.gather(
*[_host.close() for _host in _hosts], return_exceptions=True