cleanup test_asyncio/test_base_events.py: cm variable was unused

This commit is contained in:
Victor Stinner 2014-06-04 00:18:41 +02:00
parent a9fa2664ab
commit 8551e0f3e0
1 changed files with 1 additions and 1 deletions

View 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)