summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_unittest/test_async_case.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2025-07-09 08:34:19 (GMT)
committerGitHub <noreply@github.com>2025-07-09 08:34:19 (GMT)
commitc29fce05f3b4558f2dcd91ccaac5ab646caf6c1c (patch)
tree6f4a5e64975f38f477b0cae85c6ca82a292d1fc1 /Lib/test/test_unittest/test_async_case.py
parenta9d2f08b579a400e0f2a337116bb29f476249dff (diff)
downloadcpython-c29fce05f3b4558f2dcd91ccaac5ab646caf6c1c.zip
cpython-c29fce05f3b4558f2dcd91ccaac5ab646caf6c1c.tar.gz
cpython-c29fce05f3b4558f2dcd91ccaac5ab646caf6c1c.tar.bz2
[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 797abd1f7fdeb744bf9f683ef844e7279aad3d72) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Diffstat (limited to 'Lib/test/test_unittest/test_async_case.py')
-rw-r--r--Lib/test/test_unittest/test_async_case.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_unittest/test_async_case.py b/Lib/test/test_unittest/test_async_case.py
index 993e6bf..91d4528 100644
--- a/Lib/test/test_unittest/test_async_case.py
+++ b/Lib/test/test_unittest/test_async_case.py
@@ -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 @@ class TestAsyncCase(unittest.TestCase):
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 @@ class TestAsyncCase(unittest.TestCase):
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