From: Victor Stinner Date: Tue, 20 May 2014 13:57:08 +0000 (+0200) Subject: asyncio: test_base_events: use mock.Mock instead of unittest.mock.Mock to X-Git-Tag: v3.4.2rc1~520 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93668f4459fea03b88abda0c86f1981f402b15fb;p=python asyncio: test_base_events: use mock.Mock instead of unittest.mock.Mock to simplify the synchronization with Trollius --- diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py index 544bd3dde1..4ba95565da 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