GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||
GeezerVison is showing github.com — gh-116731: libregrtest: Clear inspect & importlib.metadata caches in clear_caches by encukou · Pull Request #116805 · python/cpython Conversation
|
| except KeyError: | ||
| pass | ||
| else: | ||
| importlib_metadata.FastPath.__new__.cache_clear() |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Why not importlib_metadata.MetadataPathFinder().invalidate_caches()? I feel like the latter is likely to be more robust if new caches are created.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
IMO, that'd make it too easy to add unbounded caches, like those in #116804. The refleak tests should catch those :)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 New build scheduled with the buildbot fleet by @encukou for commit 7f58006 🤖 If you want to schedule another build, you need to add the 🔨 test-with-refleak-buildbots label again. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…es in clear_caches (pythonGH-116805) (cherry picked from commit bae6579) Co-authored-by: Petr Viktorin <[email protected]> Co-authored-by: Jason R. Coombs <[email protected]>
|
GH-116820 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…hes in clear_caches (GH-116805) (GH-116820) gh-116731: libregrtest: Clear inspect & importlib.metadata caches in clear_caches (GH-116805) (cherry picked from commit bae6579) Co-authored-by: Petr Viktorin <[email protected]> Co-authored-by: Jason R. Coombs <[email protected]>
…es in clear_caches (pythonGH-116805) Co-authored-by: Jason R. Coombs <[email protected]>
…es in clear_caches (pythonGH-116805) Co-authored-by: Jason R. Coombs <[email protected]>
…es in clear_caches (pythonGH-116805) Co-authored-by: Jason R. Coombs <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.