Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork939
Commit865c6e8
committed
Further expand "not from cwd" test re: cmd.exe
On Python versions for whichpython/cpython#101283 is not patched,using Popen with shell=True can find cmd.exe in the currentdirectory on Windows, in the rare case that the ComSpec environmentvariable is not defined.This is not necessarily worth addressing, because it is a bug inCPython rahter than GitPython, because that bug has been patched,and because it is very rare that ComSpec is undefined. However:- Changing the code to avoid it would also make that code simpler.- Patched versions of Python <=3.9 don't have python.org builds.This commit just expands the test to add cases where a repositoryalso has a file cmd.exe and where ComSpec is undefined, showingthat this case is not covered.1 parent7da9c3b commit865c6e8
1 file changed
+33
-6
lines changedLines changed: 33 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
32 | 47 |
| |
33 | 48 |
| |
34 | 49 |
| |
| |||
137 | 152 |
| |
138 | 153 |
| |
139 | 154 |
| |
140 |
| - | |
141 |
| - | |
142 |
| - | |
143 |
| - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
144 | 162 |
| |
145 | 163 |
| |
146 | 164 |
| |
147 |
| - | |
| 165 | + | |
148 | 166 |
| |
149 | 167 |
| |
150 | 168 |
| |
| |||
160 | 178 |
| |
161 | 179 |
| |
162 | 180 |
| |
163 |
| - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
164 | 191 |
| |
165 | 192 |
| |
166 | 193 |
| |
|
0 commit comments
Comments
(0)