]> granicus.if.org Git - python/commitdiff
cleanup test_asyncio/test_base_events.py: cm variable was unused
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 3 Jun 2014 22:18:41 +0000 (00:18 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 3 Jun 2014 22:18:41 +0000 (00:18 +0200)
Lib/test/test_asyncio/test_base_events.py

index dbcd590b467321d290980d17a3658f28449e0923..e28c32724aa2e3c7fbfdf84195637d4eff13f91d 100644 (file)
@@ -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)