Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9c8f379

Browse files
authored
gh-96465: Clear fractions hash lru_cache under refleak testing (GH-96689)
Automerge-Triggered-By: GH:zware
1 parentc06c001 commit9c8f379

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎Lib/test/libregrtest/utils.py‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,3 +210,10 @@ def clear_caches():
210210
else:
211211
forfintyping._cleanups:
212212
f()
213+
214+
try:
215+
fractions=sys.modules['fractions']
216+
exceptKeyError:
217+
pass
218+
else:
219+
fractions._hash_algorithm.cache_clear()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp