mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
asyncio: Don't export BaseEventLoop, BaseSelectorEventLoop nor
BaseProactorEventLoop Import them from submodules if you really need them.
This commit is contained in:
parent
ce8d153b02
commit
128ee220e2
5 changed files with 13 additions and 15 deletions
|
@ -9,6 +9,7 @@ import unittest.mock
|
|||
from test.support import find_unused_port, IPV6_ENABLED
|
||||
|
||||
import asyncio
|
||||
from asyncio import base_events
|
||||
from asyncio import constants
|
||||
from asyncio import test_utils
|
||||
|
||||
|
@ -16,7 +17,7 @@ from asyncio import test_utils
|
|||
class BaseEventLoopTests(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.loop = asyncio.BaseEventLoop()
|
||||
self.loop = base_events.BaseEventLoop()
|
||||
self.loop._selector = unittest.mock.Mock()
|
||||
asyncio.set_event_loop(None)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue