]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-121110: Fix Extension Module Tests Under Py_TRACE_REFS Builds (gh-121517)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 8 Jul 2024 21:34:58 +0000 (23:34 +0200)
committerGitHub <noreply@github.com>
Mon, 8 Jul 2024 21:34:58 +0000 (21:34 +0000)
commitc1891e225e9b95e8484acfb2645e7ef1cf1dff7d
tree9a3ce2080c7b4fc848aadc118382d166da8fda9a
parentc128718f309b144ebab5ed6e4ea91fe7badab25c
[3.13] gh-121110: Fix Extension Module Tests Under Py_TRACE_REFS Builds (gh-121517)

The change in gh-118157 (b2cd54a) should have also updated clear_singlephase_extension() but didn't.  We fix that here.  Note that clear_singlephase_extension() (AKA _PyImport_ClearExtension()) is only used in tests.

(cherry picked from commit 15d48aea02099ffc5bdc5511cc53ced460cb31b9, AKA gh-121503)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Lib/test/test_import/__init__.py
Python/import.c