Skip to content

Commit aa3232d

Browse files
authored
[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.
1 parent 9536fe1 commit aa3232d

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Lib/test/libregrtest/utils.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -272,13 +272,6 @@ def clear_caches():
272272
for f in typing._cleanups:
273273
f()
274274

275-
try:
276-
fractions = sys.modules['fractions']
277-
except KeyError:
278-
pass
279-
else:
280-
fractions._hash_algorithm.cache_clear()
281-
282275

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

0 commit comments

Comments
 (0)