diff options
author | Florian Apolloner <florian@apolloner.eu> | 2008-08-11 20:48:41 +0200 |
---|---|---|
committer | Florian Apolloner <florian@apolloner.eu> | 2008-08-11 20:48:41 +0200 |
commit | cf37099ea8d1d8c7fbf9b6d12d7ec0249d3acb8b (patch) | |
tree | 01fb5ddba393df486d850c37f40c9a87f4a28a14 /test/git/test_git.py | |
parent | bfdc8e26d36833b3a7106c306fdbe6d38dec817e (diff) | |
download | gitpython-cf37099ea8d1d8c7fbf9b6d12d7ec0249d3acb8b.tar.gz |
use shell=True in windows (git.exe needs to be on %PATH%)
One bug remaining: git on windows is returning status 0 for `git this-does-not-exist`, so no GitCommandError is raised.
Diffstat (limited to 'test/git/test_git.py')
-rw-r--r-- | test/git/test_git.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/git/test_git.py b/test/git/test_git.py index d649bb1b..4618ecf2 100644 --- a/test/git/test_git.py +++ b/test/git/test_git.py @@ -4,7 +4,7 @@ # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php -import os +import os, sys from test.testlib import * from git import Git, GitCommandError @@ -45,7 +45,10 @@ class TestGit(object): fh.close() def test_it_handles_large_input(self): - output = self.git.execute(["cat", "/bin/bash"]) + if sys.platform == 'win32': + output = self.git.execute(["type", "C:\WINDOWS\system32\cmd.exe"]) + else: + output = self.git.execute(["cat", "/bin/bash"]) assert_true(len(output) > 4096) # at least 4k @patch(Git, 'execute') |