[Python-checkins] cpython (3.4): cleanup test_asyncio/test_base_events.py: cm variable was unused
victor.stinner
python-checkins at python.org
Wed Jun 4 00:20:29 CEST 2014
http://hg.python.org/cpython/rev/ebd5af6ed37c
changeset: 91003:ebd5af6ed37c
branch: 3.4
parent: 91001:bbd773ed9584
user: Victor Stinner <victor.stinner at gmail.com>
date: Wed Jun 04 00:18:41 2014 +0200
summary:
cleanup test_asyncio/test_base_events.py: cm variable was unused
files:
Lib/test/test_asyncio/test_base_events.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py
--- a/Lib/test/test_asyncio/test_base_events.py
+++ b/Lib/test/test_asyncio/test_base_events.py
@@ -600,7 +600,7 @@
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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list