Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork939
Commite8cfae8
committed
Test that PermissionError is only wrapped on Windows
This changes tests in test_util to verify the opposite behaviorfrom what was enforced before, in the unusual case (that hopefullynever happens outside of monkey-patching in test_util.py itself)where the system is not Windows but HIDE_WINDOWS_KNOWN_ERRORS isset to True.The same-named environment variable will not, and never has, setHIDE_WINDOWS_KNOWN_ERRORS to True on non-Windows systems, but it ispossible to set it to True directly. Since it is named as aconstant and no documentation has ever suggested changing its valuedirectly, nor otherwise attempting to use it outside Windows, itshouldn't matter what happens in this unusual case. But assertingthat wrapping never occurs in this combination of circumstances iswhat makes the most sense in light of the recent change to pass nocallback to shutil.rmtree on non-Windows systems.1 parent6de8e67 commite8cfae8
1 file changed
+13
-6
lines changedLines changed: 13 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
135 | 135 |
| |
136 | 136 |
| |
137 | 137 |
| |
138 |
| - | |
139 |
| - | |
| 138 | + | |
| 139 | + | |
140 | 140 |
| |
141 | 141 |
| |
142 |
| - | |
| 142 | + | |
143 | 143 |
| |
144 | 144 |
| |
145 | 145 |
| |
| |||
157 | 157 |
| |
158 | 158 |
| |
159 | 159 |
| |
160 |
| - | |
161 |
| - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
162 | 169 |
| |
163 |
| - | |
| 170 | + | |
164 | 171 |
| |
165 | 172 |
| |
166 | 173 |
| |
|
0 commit comments
Comments
(0)