mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
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
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