mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
(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:
commit
1c4398f880
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue