diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2014-01-25 22:22:18 +0100 |
|---|---|---|
| committer | Victor Stinner <victor.stinner@gmail.com> | 2014-01-25 22:22:18 +0100 |
| commit | 128ee220e21bd4e7eb152396ff24d879f38c5d91 (patch) | |
| tree | cc445b03c4b76fdec0bab5bb1374826356f7a951 /Lib/test/test_asyncio/test_base_events.py | |
| parent | ce8d153b0245d324735cdb72e4267f1dd9e52e1e (diff) | |
| download | cpython-git-128ee220e21bd4e7eb152396ff24d879f38c5d91.tar.gz | |
asyncio: Don't export BaseEventLoop, BaseSelectorEventLoop nor
BaseProactorEventLoop
Import them from submodules if you really need them.
Diffstat (limited to 'Lib/test/test_asyncio/test_base_events.py')
| -rw-r--r-- | Lib/test/test_asyncio/test_base_events.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py index 8d0796ab7b..9c2bda1f96 100644 --- a/Lib/test/test_asyncio/test_base_events.py +++ b/Lib/test/test_asyncio/test_base_events.py @@ -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) |
