Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1c4398f

Browse files
committed
(Merge 3.4) asyncio: test_base_events: use mock.Mock instead of
unittest.mock.Mock to simplify the synchronization with Trollius
2 parents 92ab9a1 + 93668f4 commit 1c4398f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_asyncio/test_base_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def cb():
141141
pass
142142

143143
other_loop = base_events.BaseEventLoop()
144-
other_loop._selector = unittest.mock.Mock()
144+
other_loop._selector = mock.Mock()
145145
asyncio.set_event_loop(other_loop)
146146

147147
# raise RuntimeError if the event loop is different in debug mode

0 commit comments

Comments
 (0)