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

Commit9196da4

Browse files
authored
gh-103193: Fix refleaks intest_inspect andtest_typing (#104320)
1 parent41aff46 commit9196da4

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,6 +210,13 @@ def clear_caches():
210210
else:
211211
fractions._hash_algorithm.cache_clear()
212212

213+
try:
214+
inspect=sys.modules['inspect']
215+
exceptKeyError:
216+
pass
217+
else:
218+
inspect._shadowed_dict_from_mro_tuple.cache_clear()
219+
213220

214221
defget_build_info():
215222
# Get most important configure and build options as a list of strings.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp