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 <>
Python-bugs-list mailing list

Reply via email to