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

Commit7611cd9

Browse files
committed
Don't check form of version number
This changes the regex in test_it_executes_git_not_from_cwd sothat (unlike test_it_executes_git_to_shell_and_returns_result) itonly checks that the output starts with the words "git version",and not the form of whatever follows those words.
1 parent94e0fb0 commit7611cd9

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
@@ -103,7 +103,7 @@ def test_it_executes_git_not_from_cwd(self):
103103
os.chmod(impostor_path,0o755)
104104

105105
with_chdir(tmpdir):
106-
self.assertRegex(self.git.execute(["git","version"]),r"^git version [\d\.]{2}.*$")
106+
self.assertRegex(self.git.execute(["git","version"]),r"^git version\b")
107107

108108
deftest_it_accepts_stdin(self):
109109
filename=fixture_path("cat_file_blob")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp