From 8551e0f3e03f950275ab5ca736c70c1e08acc5ef Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 4 Jun 2014 00:18:41 +0200 Subject: [PATCH] cleanup test_asyncio/test_base_events.py: cm variable was unused --- Lib/test/test_asyncio/test_base_events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py index dbcd590b46..e28c32724a 100644 --- a/Lib/test/test_asyncio/test_base_events.py +++ b/Lib/test/test_asyncio/test_base_events.py @@ -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) -- 2.40.0