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

Commit48af0ac

Browse files
committed
tests: allow "git version" test to pass on arbitrary git versions
Sometimes people run development versions of git.On these versions, "git version" returns, for example:git version 1.5.4.rc2.1105.gfc5f2The test_it_executes_git_to_shell_and_returns_resulttestcase was updated to accept these versions of git.Signed-off-by: David Aguilar <davvid@gmail.com>
1 parentdafe71a commit48af0ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎test/git/test_git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_it_transforms_kwargs_into_git_command_arguments(self):
2424
assert_equal(["-s","-t"],self.git.transform_kwargs(**{'s':True,'t':True}))
2525

2626
deftest_it_executes_git_to_shell_and_returns_result(self):
27-
assert_match('^git version [\d\.]*$',self.git.execute(["git","version"]))
27+
assert_match('^git version [\d\.]{2}.*$',self.git.execute(["git","version"]))
2828

2929
deftest_it_accepts_stdin(self):
3030
filename=fixture_path("cat_file_blob")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp