Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-108822: Fix regrtest clear_caches()
Python 3.11 doesn't have fractions._hash_algorithm cache.
  • Loading branch information
vstinner committed Sep 14, 2023
commit feaac85481dc493b904382c6782a8db40f0438c6
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