| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,6 +19,7 @@ | |||
| 19 | 19 | from git import ( | |
| 20 | 20 | Git, | |
| 21 | 21 | GitCommandError, | |
| 22 | + GitCommandNotFound, | ||
| 22 | 23 | Repo | |
| 23 | 24 | ) | |
| 24 | 25 | from gitdb.test.lib import with_rw_directory | |
@@ -127,11 +128,7 @@ def test_version(self): | |||
| 127 | 128 | ||
| 128 | 129 | def test_cmd_override(self): | |
| 129 | 130 | prev_cmd = self.git.GIT_PYTHON_GIT_EXECUTABLE | |
| 130 | - if os.name == 'nt': | ||
| 131 | - exc = GitCommandError | ||
| 132 | - else: | ||
| 133 | - exc = OSError | ||
| 134 | - # end handle windows case | ||
| 131 | + exc = GitCommandNotFound | ||
| 135 | 132 | try: | |
| 136 | 133 | # set it to something that doens't exist, assure it raises | |
| 137 | 134 | type(self.git).GIT_PYTHON_GIT_EXECUTABLE = os.path.join( | |
| Back | FazBrowse Home | New Git URL |
0 commit comments