summaryrefslogtreecommitdiff
path: root/test/git/test_git.py
diff options
context:
space:
mode:
authorDavid Aguilar <davvid@gmail.com>2008-05-31 14:54:32 -0700
committerDavid Aguilar <davvid@gmail.com>2008-05-31 14:59:15 -0700
commit48af0ac87dc3beef4d3e6c7982b158d50f7b2a6e (patch)
treec3ea6a239128af5b464a3fc16cad637a0f9d4594 /test/git/test_git.py
parentdafe71a3e2d5cfb9b80805a26d5442ca5ad8332f (diff)
downloadgitpython-48af0ac87dc3beef4d3e6c7982b158d50f7b2a6e.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.py2
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")