aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_asyncio/test_events.py
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2016-11-03 15:09:24 -0700
committerYury Selivanov <yury@magic.io>2016-11-03 15:09:24 -0700
commit491a912659a4aeb57c400f37b8059fa1ef7bed73 (patch)
tree94ffc1eb512bff47d248fef0d3ad10d7a8dffbbb /Lib/test/test_asyncio/test_events.py
parent9e80eeb22dde9740dada6d750e4dcb1712d070ab (diff)
downloadcpython-491a912659a4aeb57c400f37b8059fa1ef7bed73.tar.gz
cpython-491a912659a4aeb57c400f37b8059fa1ef7bed73.zip
Issue #28600: Optimize loop.call_soon().
Run expensive type checks only in debug mode. In addition, stop supporting passing handles to loop.run_in_executor.
Diffstat (limited to 'Lib/test/test_asyncio/test_events.py')
-rw-r--r--Lib/test/test_asyncio/test_events.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py
index 7df926f191d..d8946e38f22 100644
--- a/Lib/test/test_asyncio/test_events.py
+++ b/Lib/test/test_asyncio/test_events.py
@@ -2249,13 +2249,6 @@ class HandleTests(test_utils.TestCase):
h.cancel()
self.assertTrue(h._cancelled)
- def test_handle_from_handle(self):
- def callback(*args):
- return args
- h1 = asyncio.Handle(callback, (), loop=self.loop)
- self.assertRaises(
- AssertionError, asyncio.Handle, h1, (), self.loop)
-
def test_callback_with_exception(self):
def callback():
raise ValueError()