]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-92265: set meta_path and path_hooks correctly in test_reload_namespace_changed...
authorFilipe Laíns <lains@archlinux.org>
Mon, 16 May 2022 23:05:47 +0000 (00:05 +0100)
committerGitHub <noreply@github.com>
Mon, 16 May 2022 23:05:47 +0000 (16:05 -0700)
commitc7d699969c81dbadd26fa2af5bc647fa5579eb08
tree6a9583b3920675920438e6f7a846f708d73632bf
parent00f22e8cc234aa52ec1f28094a170d7b87d0d08f
gh-92265: set meta_path and path_hooks correctly in test_reload_namespace_changed (GH-92275)

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.
Lib/test/test_importlib/test_api.py