mirror of https://github.com/python/cpython
gh-96465: Clear fractions hash lru_cache under refleak testing (GH-96689)
Automerge-Triggered-By: GH:zware
This commit is contained in:
parent
c06c001b30
commit
9c8f379433
|
@ -210,3 +210,10 @@ def clear_caches():
|
|||
else:
|
||||
for f in typing._cleanups:
|
||||
f()
|
||||
|
||||
try:
|
||||
fractions = sys.modules['fractions']
|
||||
except KeyError:
|
||||
pass
|
||||
else:
|
||||
fractions._hash_algorithm.cache_clear()
|
||||
|
|
Loading…
Reference in New Issue