diff options
author | Brett Cannon <brettcannon@users.noreply.github.com> | 2018-06-02 03:34:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-02 03:34:09 (GMT) |
commit | 8425de4147eb8d83befbb8ea77516fc764bb4309 (patch) | |
tree | e07959e28d2c69c12aabd580ecb35e7a968783d3 /Lib/test/test_pdb.py | |
parent | de6516264e793be991f692fdd892707afb9104a7 (diff) | |
download | cpython-8425de4147eb8d83befbb8ea77516fc764bb4309.zip cpython-8425de4147eb8d83befbb8ea77516fc764bb4309.tar.gz cpython-8425de4147eb8d83befbb8ea77516fc764bb4309.tar.bz2 |
bpo-33562: Check the global asyncio event loop policy isn't set after any tests (GH-7328)
Diffstat (limited to 'Lib/test/test_pdb.py')
-rw-r--r-- | Lib/test/test_pdb.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py index 9aa38e0..4f9d28a 100644 --- a/Lib/test/test_pdb.py +++ b/Lib/test/test_pdb.py @@ -745,6 +745,7 @@ def test_pdb_next_command_for_coroutine(): ... loop = asyncio.new_event_loop() ... loop.run_until_complete(test_main()) ... loop.close() + ... asyncio.set_event_loop_policy(None) ... print("finished") >>> with PdbTestInput(['step', @@ -804,6 +805,7 @@ def test_pdb_next_command_for_asyncgen(): ... loop = asyncio.new_event_loop() ... loop.run_until_complete(test_main()) ... loop.close() + ... asyncio.set_event_loop_policy(None) ... print("finished") >>> with PdbTestInput(['step', @@ -915,6 +917,7 @@ def test_pdb_return_command_for_coroutine(): ... loop = asyncio.new_event_loop() ... loop.run_until_complete(test_main()) ... loop.close() + ... asyncio.set_event_loop_policy(None) ... print("finished") >>> with PdbTestInput(['step', @@ -1005,6 +1008,7 @@ def test_pdb_until_command_for_coroutine(): ... loop = asyncio.new_event_loop() ... loop.run_until_complete(test_main()) ... loop.close() + ... asyncio.set_event_loop_policy(None) ... print("finished") >>> with PdbTestInput(['step', |