Repository navigation
gh-162342: Close cached zip files in importlib.metadata test fixtures - #162352
Conversation
…xtures Temporary workaround to get bots green until importlib.metadata cleans these up itself. FastPath keeps the fixture ZipFiles alive because of a cycle in its cache. That means they get closed on deallocation resulting in the unclosed file warning. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
🤖 New build scheduled with the buildbot fleet by @cmaloney for commit f5e5158 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F162352%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
|
Merging to get bots green. Filed python/importlib_metadata#562 to fix the reference cycle. |
|
|
Thanks for the quick fix. |
|
Should the change be backported to 3.14 and 3.15 branches? |
|
This is more a workaround than fixing the underlying bug so I don't think backport here. A full fix in |
Temporary workaround to get bots green until importlib.metadata cleans these up itself. FastPath keeps the fixture ZipFiles alive because of a cycle in its cache. That means they get closed on deallocation resulting in the unclosed file warning.
cc: @eendebakpt @kumaraditya303 This buildbot failure was introduced by #161184 which made it so a reference cycle in a cache in
importlib.metadatawas cleaned up slightly differently leading to the warning. Goal here is just to get bots back to green. Fixing the unclosed file is separate larger project.