mirror of
https://github.com/python/cpython.git
synced 2025-10-22 09:23:54 +00:00
[3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455)
gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665)
(cherry picked from commit 797abd1f7f
)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
parent
a9d2f08b57
commit
c29fce05f3
47 changed files with 105 additions and 90 deletions
|
@ -12,7 +12,7 @@ class MyException(Exception):
|
|||
|
||||
|
||||
def tearDownModule():
|
||||
asyncio._set_event_loop_policy(None)
|
||||
asyncio.events._set_event_loop_policy(None)
|
||||
|
||||
|
||||
class TestCM:
|
||||
|
@ -480,7 +480,7 @@ def test_setup_get_event_loop(self):
|
|||
|
||||
class TestCase1(unittest.IsolatedAsyncioTestCase):
|
||||
def setUp(self):
|
||||
asyncio._get_event_loop_policy().get_event_loop()
|
||||
asyncio.events._get_event_loop_policy().get_event_loop()
|
||||
|
||||
async def test_demo1(self):
|
||||
pass
|
||||
|
@ -490,7 +490,7 @@ async def test_demo1(self):
|
|||
self.assertTrue(result.wasSuccessful())
|
||||
|
||||
def test_loop_factory(self):
|
||||
asyncio._set_event_loop_policy(None)
|
||||
asyncio.events._set_event_loop_policy(None)
|
||||
|
||||
class TestCase1(unittest.IsolatedAsyncioTestCase):
|
||||
loop_factory = asyncio.EventLoop
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue