mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-103193: Fix refleaks in test_inspect
and test_typing
(#104320)
This commit is contained in:
parent
41aff464ce
commit
9196da417d
1 changed files with 7 additions and 0 deletions
|
@ -210,6 +210,13 @@ def clear_caches():
|
|||
else:
|
||||
fractions._hash_algorithm.cache_clear()
|
||||
|
||||
try:
|
||||
inspect = sys.modules['inspect']
|
||||
except KeyError:
|
||||
pass
|
||||
else:
|
||||
inspect._shadowed_dict_from_mro_tuple.cache_clear()
|
||||
|
||||
|
||||
def get_build_info():
|
||||
# Get most important configure and build options as a list of strings.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue