summaryrefslogtreecommitdiff
path: root/git/test/test_git.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/test/test_git.py')
-rw-r--r--git/test/test_git.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/git/test/test_git.py b/git/test/test_git.py
index ef694755..742c842d 100644
--- a/git/test/test_git.py
+++ b/git/test/test_git.py
@@ -19,6 +19,7 @@ from git.test.lib import (
from git import (
Git,
GitCommandError,
+ GitCommandNotFound,
Repo
)
from gitdb.test.lib import with_rw_directory
@@ -127,11 +128,7 @@ class TestGit(TestBase):
def test_cmd_override(self):
prev_cmd = self.git.GIT_PYTHON_GIT_EXECUTABLE
- if os.name == 'nt':
- exc = GitCommandError
- else:
- exc = OSError
- # end handle windows case
+ exc = GitCommandNotFound
try:
# set it to something that doens't exist, assure it raises
type(self.git).GIT_PYTHON_GIT_EXECUTABLE = os.path.join(