From: Victor Stinner Date: Tue, 3 Jun 2014 22:18:41 +0000 (+0200) Subject: cleanup test_asyncio/test_base_events.py: cm variable was unused X-Git-Tag: v3.4.2rc1~447 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8551e0f3e03f950275ab5ca736c70c1e08acc5ef;p=python cleanup test_asyncio/test_base_events.py: cm variable was unused --- 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)