Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 4 additions & 16 deletions Lib/test/test_pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -1708,10 +1708,7 @@ def test_pdb_next_command_for_coroutine():
... 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',
Expand Down Expand Up @@ -1768,10 +1765,7 @@ def test_pdb_next_command_for_asyncgen():
... 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',
Expand Down Expand Up @@ -1880,10 +1874,7 @@ def test_pdb_return_command_for_coroutine():
... 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',
Expand Down Expand Up @@ -1971,10 +1962,7 @@ def test_pdb_until_command_for_coroutine():
... 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',
Expand Down