Skip to content

Commit 584aa2b

Browse files
committed
Modify asyncio.run usage to cleanup at time of use.
1 parent 6c794e0 commit 584aa2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_pdb.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2155,7 +2155,7 @@ def test_pdb_asynctask():
21552155
... import pdb; pdb.Pdb(nosigint=True, readrc=False).set_trace()
21562156
21572157
>>> def test_function():
2158-
... asyncio.run(test())
2158+
... asyncio.run(test(), loop_factory=asyncio.EventLoop)
21592159
21602160
>>> with PdbTestInput([ # doctest: +ELLIPSIS
21612161
... '$_asynctask',

0 commit comments

Comments
 (0)