[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:
Miss Islington (bot) 2025-07-09 10:34:19 +02:00 committed by GitHub
parent a9d2f08b57
commit c29fce05f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
47 changed files with 105 additions and 90 deletions

View file

@ -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