@@ -2065,10 +2065,7 @@ def test_pdb_next_command_for_coroutine():
2065
2065
... await test_coro()
2066
2066
2067
2067
>>> def test_function():
2068
- ... loop = asyncio.new_event_loop()
2069
- ... loop.run_until_complete(test_main())
2070
- ... loop.close()
2071
- ... asyncio.set_event_loop_policy(None)
2068
+ ... asyncio.run(test_main())
2072
2069
... print("finished")
2073
2070
2074
2071
>>> with PdbTestInput(['step',
@@ -2129,10 +2126,7 @@ def test_pdb_next_command_for_asyncgen():
2129
2126
... await test_coro()
2130
2127
2131
2128
>>> def test_function():
2132
- ... loop = asyncio.new_event_loop()
2133
- ... loop.run_until_complete(test_main())
2134
- ... loop.close()
2135
- ... asyncio._set_event_loop_policy(None)
2129
+ ... asyncio.run(test_main())
2136
2130
... print("finished")
2137
2131
2138
2132
>>> with PdbTestInput(['step',
@@ -2250,10 +2244,7 @@ def test_pdb_return_command_for_coroutine():
2250
2244
... await test_coro()
2251
2245
2252
2246
>>> def test_function():
2253
- ... loop = asyncio.new_event_loop()
2254
- ... loop.run_until_complete(test_main())
2255
- ... loop.close()
2256
- ... asyncio._set_event_loop_policy(None)
2247
+ ... asyncio.run(test_main())
2257
2248
... print("finished")
2258
2249
2259
2250
>>> with PdbTestInput(['step',
@@ -2350,10 +2341,7 @@ def test_pdb_until_command_for_coroutine():
2350
2341
... await test_coro()
2351
2342
2352
2343
>>> def test_function():
2353
- ... loop = asyncio.new_event_loop()
2354
- ... loop.run_until_complete(test_main())
2355
- ... loop.close()
2356
- ... asyncio._set_event_loop_policy(None)
2344
+ ... asyncio.run(test_main())
2357
2345
... print("finished")
2358
2346
2359
2347
>>> with PdbTestInput(['step',
0 commit comments