Skip to content

Commit 7a20797

Browse files
authored
[3.11] gh-108822: Fix regrtest clear_caches() (#109432)
gh-108822: Fix regrtest clear_caches() Python 3.11 doesn't have fractions._hash_algorithm cache.
1 parent f7bfac4 commit 7a20797

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Lib/test/libregrtest/utils.py

-7
Original file line numberDiff line numberDiff line change
@@ -212,13 +212,6 @@ def clear_caches():
212212
for f in typing._cleanups:
213213
f()
214214

215-
try:
216-
fractions = sys.modules['fractions']
217-
except KeyError:
218-
pass
219-
else:
220-
fractions._hash_algorithm.cache_clear()
221-
222215

223216
def get_build_info():
224217
# Get most important configure and build options as a list of strings.

0 commit comments

Comments
 (0)