mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
gh-127949: deprecate asyncio.set_event_loop (#128218)
Deprecate `asyncio.set_event_loop` to be removed in Python 3.16.
This commit is contained in:
parent
3ddd70ceaa
commit
9fce906825
16 changed files with 77 additions and 55 deletions
|
|
@ -2287,7 +2287,7 @@ class CoroAsyncIOCompatTest(unittest.TestCase):
|
|||
buffer.append('unreachable')
|
||||
|
||||
loop = asyncio.new_event_loop()
|
||||
asyncio.set_event_loop(loop)
|
||||
asyncio._set_event_loop(loop)
|
||||
try:
|
||||
loop.run_until_complete(f())
|
||||
except MyException:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue