mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue