[Python-checkins] cpython (3.4): asyncio: test_base_events: use mock.Mock instead of unittest.mock.Mock to
victor.stinner
python-checkins at python.org
Tue May 20 16:04:57 CEST 2014
http://hg.python.org/cpython/rev/b3a65318fb2c
changeset: 90775:b3a65318fb2c
branch: 3.4
parent: 90773:1a805cfe9980
user: Victor Stinner <victor.stinner at gmail.com>
date: Tue May 20 15:57:08 2014 +0200
summary:
asyncio: test_base_events: use mock.Mock instead of unittest.mock.Mock to
simplify the synchronization with Trollius
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
@@ -141,7 +141,7 @@
pass
other_loop = base_events.BaseEventLoop()
- other_loop._selector = unittest.mock.Mock()
+ other_loop._selector = mock.Mock()
asyncio.set_event_loop(other_loop)
# raise RuntimeError if the event loop is different in debug mode
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list