diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-11-04 06:29:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-04 06:29:20 (GMT) |
commit | d15fac2a6798d0cd149c1cb3c36167863cbc19e3 (patch) | |
tree | 014a9b3aa8dfbae997282462a259370709126b7b /Python/errors.c | |
parent | 02f8f781dac62112362fa8a96f5c08deccb7b27f (diff) | |
download | cpython-d15fac2a6798d0cd149c1cb3c36167863cbc19e3.zip cpython-d15fac2a6798d0cd149c1cb3c36167863cbc19e3.tar.gz cpython-d15fac2a6798d0cd149c1cb3c36167863cbc19e3.tar.bz2 |
[3.12] gh-111644: Fix asyncio test_unhandled_exceptions() (GH-111713) (#111718)
gh-111644: Fix asyncio test_unhandled_exceptions() (GH-111713)
Fix test_unhandled_exceptions() of test_asyncio.test_streams: break
explicitly a reference cycle.
Fix also StreamTests.tearDown(): the loop must not be closed
explicitly, but using set_event_loop() which takes care of shutting
down the executor with executor.shutdown(wait=True).
BaseEventLoop.close() calls executor.shutdown(wait=False).
(cherry picked from commit ac01e2243a1104b2154c0d1bdbc9f8d5b3ada778)
Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions