Antoine Pitrou added the comment:
I think the API is too specific. Instead of requiring hostname and port, why
not let the user override setup and teardown coroutines?
In your case, this could be:
async def setup(self):
self.server = await self.loop.create_server(...)
async def teardown(self):
await self.server.wait_closed()
----------
nosy: +giampaolo.rodola, pitrou, yselivanov
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue30300>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com