]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-121084: Fix test_typing random leaks (GH-121360) (#121373)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 4 Jul 2024 18:07:07 +0000 (20:07 +0200)
committerGitHub <noreply@github.com>
Thu, 4 Jul 2024 18:07:07 +0000 (18:07 +0000)
commitabefbcba8a0ced0f729c08031672d6f188059181
tree2cb8c1991ddd120b5c35932f20e7a29614e1f26f
parent273c993b06ccb4dd30ebcf5708a7f9a26bcd98be
[3.13] gh-121084: Fix test_typing random leaks (GH-121360) (#121373)

gh-121084: Fix test_typing random leaks (GH-121360)

Clear typing ABC caches when running tests for refleaks (-R option):
call _abc_caches_clear() on typing abstract classes and their
subclasses.
(cherry picked from commit 5f660e8e2ca3acfb89ccbdd990f072149b6baa6a)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/libregrtest/utils.py
Misc/NEWS.d/next/Tests/2024-07-04-15-10-29.gh-issue-121084.qxcd5d.rst [new file with mode: 0644]