]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-121084: Fix test_typing random leaks (GH-121360) (#121372)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 4 Jul 2024 18:00:08 +0000 (20:00 +0200)
committerGitHub <noreply@github.com>
Thu, 4 Jul 2024 18:00:08 +0000 (18:00 +0000)
commit4bf4cc22c4c0f7bd53d11b82d12054f8e8beea0e
tree72ba0fdb8256ee18107e175b9f551ac44efc8923
parent8d3f44ad015ff906275d13f5cbe88757e1db0463
[3.12] gh-121084: Fix test_typing random leaks (GH-121360) (#121372)

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]