diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2017-12-30 16:52:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-30 16:52:56 (GMT) |
commit | ffcb4c0165827d0a48ea973cc88bc134c74879fb (patch) | |
tree | e9805be7f8992461a1d886944ab19ba71a6860fc /Lib/asyncio/events.py | |
parent | 1634fc289a13b0e1fdad4694d5cae7dab55f7186 (diff) | |
download | cpython-ffcb4c0165827d0a48ea973cc88bc134c74879fb.zip cpython-ffcb4c0165827d0a48ea973cc88bc134c74879fb.tar.gz cpython-ffcb4c0165827d0a48ea973cc88bc134c74879fb.tar.bz2 |
bpo-32418: Postfix, raise NotImplementdError and close resources in tests (#5052)
Diffstat (limited to 'Lib/asyncio/events.py')
-rw-r--r-- | Lib/asyncio/events.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py index 731a0c5..af4545b 100644 --- a/Lib/asyncio/events.py +++ b/Lib/asyncio/events.py @@ -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: |