@@ -1708,10 +1708,7 @@ def test_pdb_next_command_for_coroutine():
1708
1708
... await test_coro()
1709
1709
1710
1710
>>> def test_function():
1711
- ... loop = asyncio.new_event_loop()
1712
- ... loop.run_until_complete(test_main())
1713
- ... loop.close()
1714
- ... asyncio.set_event_loop_policy(None)
1711
+ ... asyncio.run(test_main())
1715
1712
... print("finished")
1716
1713
1717
1714
>>> with PdbTestInput(['step',
@@ -1768,10 +1765,7 @@ def test_pdb_next_command_for_asyncgen():
1768
1765
... await test_coro()
1769
1766
1770
1767
>>> def test_function():
1771
- ... loop = asyncio.new_event_loop()
1772
- ... loop.run_until_complete(test_main())
1773
- ... loop.close()
1774
- ... asyncio.set_event_loop_policy(None)
1768
+ ... asyncio.run(test_main())
1775
1769
... print("finished")
1776
1770
1777
1771
>>> with PdbTestInput(['step',
@@ -1880,10 +1874,7 @@ def test_pdb_return_command_for_coroutine():
1880
1874
... await test_coro()
1881
1875
1882
1876
>>> def test_function():
1883
- ... loop = asyncio.new_event_loop()
1884
- ... loop.run_until_complete(test_main())
1885
- ... loop.close()
1886
- ... asyncio.set_event_loop_policy(None)
1877
+ ... asyncio.run(test_main())
1887
1878
... print("finished")
1888
1879
1889
1880
>>> with PdbTestInput(['step',
@@ -1971,10 +1962,7 @@ def test_pdb_until_command_for_coroutine():
1971
1962
... await test_coro()
1972
1963
1973
1964
>>> def test_function():
1974
- ... loop = asyncio.new_event_loop()
1975
- ... loop.run_until_complete(test_main())
1976
- ... loop.close()
1977
- ... asyncio.set_event_loop_policy(None)
1965
+ ... asyncio.run(test_main())
1978
1966
... print("finished")
1979
1967
1980
1968
>>> with PdbTestInput(['step',
0 commit comments