On Python 3.12, `test_import.test_concurrency()` leaks on Windows: ``` vstinner@WIN C:\victor\python\3.12>python -m test test_import -m test_concurrency -R 3:3 (...) test_import leaked [22, 36, 28] references, sum=86 ``` bisected to #94504 Potentially Related: #104702 See https://github.com/python/cpython/issues/102251#issuecomment-1610523911 https://github.com/python/cpython/pull/104796#issuecomment-1560076330 <!-- gh-linked-prs --> ### Linked PRs * gh-106207 * gh-108497 * gh-108612 <!-- /gh-linked-prs -->