mirror of
https://github.com/python/cpython.git
synced 2026-01-04 06:22:20 +00:00
[3.11] gh-111929: Fix regrtest clear_caches() (#111949)
gh-111929: Fix regrtest clear_caches() Python 3.11 doesn't have the fractions._hash_algorithm.cache_clear() function.
This commit is contained in:
parent
9536fe1656
commit
aa3232db23
1 changed files with 0 additions and 7 deletions
|
|
@ -272,13 +272,6 @@ def clear_caches():
|
|||
for f in typing._cleanups:
|
||||
f()
|
||||
|
||||
try:
|
||||
fractions = sys.modules['fractions']
|
||||
except KeyError:
|
||||
pass
|
||||
else:
|
||||
fractions._hash_algorithm.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