From 93668f4459fea03b88abda0c86f1981f402b15fb Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 20 May 2014 15:57:08 +0200 Subject: [PATCH] asyncio: test_base_events: use mock.Mock instead of unittest.mock.Mock to simplify the synchronization with Trollius --- Lib/test/test_asyncio/test_base_events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py index 544bd3dde14..4ba95565dae 100644 --- a/Lib/test/test_asyncio/test_base_events.py +++ b/Lib/test/test_asyncio/test_base_events.py @@ -141,7 +141,7 @@ class BaseEventLoopTests(unittest.TestCase): 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