diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2025-07-09 08:34:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-09 08:34:19 (GMT) |
commit | c29fce05f3b4558f2dcd91ccaac5ab646caf6c1c (patch) | |
tree | 6f4a5e64975f38f477b0cae85c6ca82a292d1fc1 /Lib/test/test_logging.py | |
parent | a9d2f08b579a400e0f2a337116bb29f476249dff (diff) | |
download | cpython-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_logging.py')
-rw-r--r-- | Lib/test/test_logging.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index c46e6f8..d8d1020 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -5421,7 +5421,7 @@ class LogRecordTest(BaseTest): logging.logAsyncioTasks = False runner.run(make_record(self.assertIsNone)) finally: - asyncio._set_event_loop_policy(None) + asyncio.events._set_event_loop_policy(None) @support.requires_working_socket() def test_taskName_without_asyncio_imported(self): @@ -5433,7 +5433,7 @@ class LogRecordTest(BaseTest): logging.logAsyncioTasks = False runner.run(make_record(self.assertIsNone)) finally: - asyncio._set_event_loop_policy(None) + asyncio.events._set_event_loop_policy(None) class BasicConfigTest(unittest.TestCase): @@ -5737,7 +5737,7 @@ class BasicConfigTest(unittest.TestCase): data = f.read().strip() self.assertRegex(data, r'Task-\d+ - hello world') finally: - asyncio._set_event_loop_policy(None) + asyncio.events._set_event_loop_policy(None) if handler: handler.close() |