Kaydet (Commit) 93668f44 authored tarafından Victor Stinner's avatar Victor Stinner

asyncio: test_base_events: use mock.Mock instead of unittest.mock.Mock to

simplify the synchronization with Trollius
üst b7b56e91
...@@ -141,7 +141,7 @@ class BaseEventLoopTests(unittest.TestCase): ...@@ -141,7 +141,7 @@ class BaseEventLoopTests(unittest.TestCase):
pass pass
other_loop = base_events.BaseEventLoop() other_loop = base_events.BaseEventLoop()
other_loop._selector = unittest.mock.Mock() other_loop._selector = mock.Mock()
asyncio.set_event_loop(other_loop) asyncio.set_event_loop(other_loop)
# raise RuntimeError if the event loop is different in debug mode # raise RuntimeError if the event loop is different in debug mode
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment