asyncio: test_base_events: use mock.Mock instead of unittest.mock.Mock to
simplify the synchronization with Trollius
This commit is contained in:
parent
b7b56e9110
commit
93668f4459
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue