]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-96021: Explicitly close the IsolatedAsyncioTestCase runner in tests (GH-96135)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 24 Aug 2022 12:07:20 +0000 (15:07 +0300)
committerGitHub <noreply@github.com>
Wed, 24 Aug 2022 12:07:20 +0000 (15:07 +0300)
commit4de06e3cc0a58d73934f9a2759ad9cd2f6b031b0
tree4f571482c2fdab89dcabf9b864364926881e82be
parent420f39f457a97a9379f8423a81776bef428d0746
gh-96021: Explicitly close the IsolatedAsyncioTestCase runner in tests (GH-96135)

Tests for IsolatedAsyncioTestCase.debug() rely on the runner be closed
in __del__. It makes tests depending on the GC an unreliable on other
implementations. It is better to close the runner explicitly even if
currently there is no a public API for this.
Lib/test/test_unittest/test_async_case.py