(Merge 3.4) asyncio: test_base_events: use mock.Mock instead of

unittest.mock.Mock to simplify the synchronization with Trollius
This commit is contained in:
Victor Stinner 2014-05-20 15:57:32 +02:00
commit 1c4398f880

View file

@ -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