diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py index 544bd3dde14..4ba95565dae 100644 --- a/Lib/test/test_asyncio/test_base_events.py +++ b/Lib/test/test_asyncio/test_base_events.py @@ -141,7 +141,7 @@ def cb(): 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