gh-128201: Fix `DeprecationWarning
in
test_pdb
` (#128202)
This commit is contained in:
parent
418114c139
commit
d9ed42bc00
@ -2065,10 +2065,7 @@ if not SKIP_ASYNCIO_TESTS:
|
||||
... await test_coro()
|
||||
|
||||
>>> def test_function():
|
||||
... loop = asyncio.new_event_loop()
|
||||
... loop.run_until_complete(test_main())
|
||||
... loop.close()
|
||||
... asyncio.set_event_loop_policy(None)
|
||||
... asyncio.run(test_main())
|
||||
... print("finished")
|
||||
|
||||
>>> with PdbTestInput(['step',
|
||||
@ -2129,10 +2126,7 @@ if not SKIP_ASYNCIO_TESTS:
|
||||
... await test_coro()
|
||||
|
||||
>>> def test_function():
|
||||
... loop = asyncio.new_event_loop()
|
||||
... loop.run_until_complete(test_main())
|
||||
... loop.close()
|
||||
... asyncio._set_event_loop_policy(None)
|
||||
... asyncio.run(test_main())
|
||||
... print("finished")
|
||||
|
||||
>>> with PdbTestInput(['step',
|
||||
@ -2250,10 +2244,7 @@ if not SKIP_ASYNCIO_TESTS:
|
||||
... await test_coro()
|
||||
|
||||
>>> def test_function():
|
||||
... loop = asyncio.new_event_loop()
|
||||
... loop.run_until_complete(test_main())
|
||||
... loop.close()
|
||||
... asyncio._set_event_loop_policy(None)
|
||||
... asyncio.run(test_main())
|
||||
... print("finished")
|
||||
|
||||
>>> with PdbTestInput(['step',
|
||||
@ -2350,10 +2341,7 @@ if not SKIP_ASYNCIO_TESTS:
|
||||
... await test_coro()
|
||||
|
||||
>>> def test_function():
|
||||
... loop = asyncio.new_event_loop()
|
||||
... loop.run_until_complete(test_main())
|
||||
... loop.close()
|
||||
... asyncio._set_event_loop_policy(None)
|
||||
... asyncio.run(test_main())
|
||||
... print("finished")
|
||||
|
||||
>>> with PdbTestInput(['step',
|
||||
|
Loading…
x
Reference in New Issue
Block a user