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:08 +02:00
parent b7b56e9110
commit 93668f4459
1 changed files with 1 additions and 1 deletions

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