Skip to content

Commit

Permalink
[3.11] gh-108822: Fix regrtest clear_caches() (#109432)
Browse files Browse the repository at this point in the history
gh-108822: Fix regrtest clear_caches()

Python 3.11 doesn't have fractions._hash_algorithm cache.
  • Loading branch information
vstinner authored Sep 15, 2023
1 parent f7bfac4 commit 7a20797
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Lib/test/libregrtest/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,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.
Expand Down

0 comments on commit 7a20797

Please sign in to comment.