diff options
author | David Aguilar <davvid@gmail.com> | 2008-05-31 14:54:32 -0700 |
---|---|---|
committer | David Aguilar <davvid@gmail.com> | 2008-05-31 15:26:43 -0700 |
commit | 55f0245f3ee538ec49e84bcb28c33b135a07f0b9 (patch) | |
tree | 59cf79d8f84f9b1a646543e5abb78c40ef2bc865 /test/git/test_git.py | |
parent | 039bfe373c990fc6db3808d255abaff91235e82f (diff) | |
download | gitpython-55f0245f3ee538ec49e84bcb28c33b135a07f0b9.tar.gz |
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.gfc5f2
The test_it_executes_git_to_shell_and_returns_result
testcase was updated to accept these versions of git.
Signed-off-by: David Aguilar <davvid@gmail.com>
Diffstat (limited to 'test/git/test_git.py')
-rw-r--r-- | test/git/test_git.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/git/test_git.py b/test/git/test_git.py index d0f3b72e..2b2464b0 100644 --- a/test/git/test_git.py +++ b/test/git/test_git.py @@ -24,7 +24,7 @@ class TestGit(object): assert_equal(["-s", "-t"], self.git.transform_kwargs(**{'s': True, 't': True})) def test_it_executes_git_to_shell_and_returns_result(self): - assert_match('^git version [\d\.]*$', self.git.execute(["git","version"])) + assert_match('^git version [\d\.]{2}.*$', self.git.execute(["git","version"])) def test_it_accepts_stdin(self): filename = fixture_path("cat_file_blob") |