bpo-32418: Postfix, raise NotImplementdError and close resources in tests (#5052)

This commit is contained in:
Andrew Svetlov 2017-12-30 18:52:56 +02:00 committed by GitHub
parent 1634fc289a
commit ffcb4c0165
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 5 deletions

View file

@ -149,15 +149,15 @@ class AbstractServer:
def close(self):
"""Stop serving. This leaves existing connections open."""
return NotImplemented
raise NotImplementedError
async def wait_closed(self):
"""Coroutine to wait until service is closed."""
return NotImplemented
raise NotImplementedError
def get_loop(self):
""" Get the event loop the Server object is attached to."""
return NotImplemented
raise NotImplementedError
class AbstractEventLoop: