summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/events.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2017-12-30 16:52:56 (GMT)
committerGitHub <noreply@github.com>2017-12-30 16:52:56 (GMT)
commitffcb4c0165827d0a48ea973cc88bc134c74879fb (patch)
treee9805be7f8992461a1d886944ab19ba71a6860fc /Lib/asyncio/events.py
parent1634fc289a13b0e1fdad4694d5cae7dab55f7186 (diff)
downloadcpython-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.py6
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: