Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit15ebb25

Browse files
committed
Clarify comment in test_hook_uses_shell_not_from_cwd
1 parentf44524a commit15ebb25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎test/test_index.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,9 +1042,9 @@ def test_hook_uses_shell_not_from_cwd(self, rw_dir, case):
10421042
# architecture, and generating one in a bespoke way may cause virus scanners to
10431043
# give a false positive. So we use a Bash/Python polyglot for the hook and use
10441044
# the Python interpreter itself as the bash.exe impostor. But an interpreter
1045-
# from a venv may not run outside of it, and a global interpreter won't run from
1046-
# a different location if it was installed from the Microsoft Store. So we make
1047-
# a new venv in rw_dir and use its interpreter.
1045+
# from a venv may not runwhen copiedoutside of it, and a global interpreter
1046+
#won't run when copied toa different location if it was installed from the
1047+
#Microsoft Store. So we makea new venv in rw_dir and use its interpreter.
10481048
venv=VirtualEnvironment(rw_dir,with_pip=False)
10491049
shutil.copy(venv.python,Path(rw_dir,shell_name))
10501050
shutil.copy(fixture_path("polyglot"),hook_path("polyglot",repo.git_dir))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp