Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c2dd54 commit a08733dCopy full SHA for a08733d
git/test/test_git.py
@@ -19,6 +19,7 @@
19
from git import (
20
Git,
21
GitCommandError,
22
+ GitCommandNotFound,
23
Repo
24
)
25
from gitdb.test.lib import with_rw_directory
@@ -127,11 +128,7 @@ def test_version(self):
127
128
129
def test_cmd_override(self):
130
prev_cmd = self.git.GIT_PYTHON_GIT_EXECUTABLE
- if os.name == 'nt':
131
- exc = GitCommandError
132
- else:
133
- exc = OSError
134
- # end handle windows case
+ exc = GitCommandNotFound
135
try:
136
# set it to something that doens't exist, assure it raises
137
type(self.git).GIT_PYTHON_GIT_EXECUTABLE = os.path.join(
0 commit comments