8000 gh-92265: set meta_path and path_hooks correctly in test_reload_namespace_changed by FFY00 · Pull Request #92275 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-92265: set meta_path and path_hooks correctly in test_reload_namespace_changed #92275

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 16, 2022

Conversation

FFY00
Copy link
Member
@FFY00 FFY00 commented May 3, 2022

Previously, we were blocking the frozen imports and forcing the source
version to be used, but we did not fix up sys.meta_path or
sys.path_hooks, causing the frozen importers to leak into the source
version of the test.

Automerge-Triggered-By: GH:ericsnowcurrently

…_namespace_changed

Previously, we were blocking the frozen imports and forceing the source
version to be used, but we did not fix up sys.meta_path or
sys.path_hooks, causing the frozen importers to leak into the source
version of the test.
Copy link
Member
@ericsnowcurrently ericsnowcurrently left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@FFY00
Copy link
Member Author
FFY00 commented May 6, 2022

Maybe @brettcannon could have a final look?

@ericsnowcurrently ericsnowcurrently changed the title gh-92265: set meta_path and path_hooks correctly in test_reload_names… gh-92265: set meta_path and path_hooks correctly in test_reload_namespace_changed May 9, 2022
@brettcannon
Copy link
Member

I'm a bit busy to review, and I trust you both to have done your due diligence to make sure it's the right solution.

@FFY00
Copy link
Member Author
FFY00 commented May 14, 2022

@ericsnowcurrently could you merge this then? Thanks!

@ericsnowcurrently
Copy link
Member

Thanks, @FFY00!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0