From 15ebb258d4eebd9bf0f38780570d57e0b968b8de Mon Sep 17 00:00:00 2001 From: Eliah Kagan Date: Mon, 18 Dec 2023 19:28:26 -0500 Subject: [PATCH] Clarify comment in test_hook_uses_shell_not_from_cwd --- test/test_index.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_index.py b/test/test_index.py index ff28f48ae..d352faa6c 100644 --- a/test/test_index.py +++ b/test/test_index.py @@ -1042,9 +1042,9 @@ def test_hook_uses_shell_not_from_cwd(self, rw_dir, case): # architecture, and generating one in a bespoke way may cause virus scanners to # give a false positive. So we use a Bash/Python polyglot for the hook and use # the Python interpreter itself as the bash.exe impostor. But an interpreter - # from a venv may not run outside of it, and a global interpreter won't run from - # a different location if it was installed from the Microsoft Store. So we make - # a new venv in rw_dir and use its interpreter. + # from a venv may not run when copied outside of it, and a global interpreter + # won't run when copied to a different location if it was installed from the + # Microsoft Store. So we make a new venv in rw_dir and use its interpreter. venv = VirtualEnvironment(rw_dir, with_pip=False) shutil.copy(venv.python, Path(rw_dir, shell_name)) shutil.copy(fixture_path("polyglot"), hook_path("polyglot", repo.git_dir))