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

Commitfbc36f9

Browse files
mgornyByron
authored andcommitted
tests: Usecommand -v instead of third-partywhich program
Use `command -v` to locate the git executable instead of `which`.The former is guaranteed to always be available according to POSIX,while which(1) is a redundant third-party tool that is slowly beingphased out from Linux distributions. In particular, Gentoo no longerinstalls it by default.
1 parent4463624 commitfbc36f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎test/test_git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def test_refresh(self):
169169
self.assertRaises(GitCommandNotFound,refresh,"yada")
170170

171171
# test a good path refresh
172-
which_cmd="where"ifis_winelse"which"
172+
which_cmd="where"ifis_winelse"command -v"
173173
path=os.popen("{0} git".format(which_cmd)).read().strip().split("\n")[0]
174174
refresh(path)
175175

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp