Commit 8551e0f3 authored by Victor Stinner's avatar Victor Stinner

cleanup test_asyncio/test_base_events.py: cm variable was unused

parent a9fa2664
......@@ -600,7 +600,7 @@ class BaseEventLoopWithSelectorTests(unittest.TestCase):
with mock.patch.object(self.loop, 'sock_connect',
side_effect=asyncio.TimeoutError):
coro = self.loop.create_connection(MyProto, '127.0.0.1', 80)
with self.assertRaises(asyncio.TimeoutError) as cm:
with self.assertRaises(asyncio.TimeoutError):
self.loop.run_until_complete(coro)
self.assertTrue(sock.close.called)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment