Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork939
Commite309b35
committed
Mock out lchmod functions in _patch_for_wrapping_test?
TestRmtree._patch_for_wrapping_test already mocked out the regularchmod functions in the os module and the Path class, to test whathappens when changing permissions cannot fix an error. But thereare also, on some systems and Python versions, lchmod versions ofthese functions. This patches those as well.I am not sure this should really be done. The problem is thatcalling such functions is fairly likely to raise an exception ifit is not properly conditioned on a check for their actualusability, and mocking them out could obscure such a bug.1 parent5c6a4f4 commite309b35
1 file changed
+7
-1
lines changedLines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
140 | 140 |
| |
141 | 141 |
| |
142 | 142 |
| |
143 |
| - | |
| 143 | + | |
144 | 144 |
| |
| 145 | + | |
| 146 | + | |
| 147 | + | |
145 | 148 |
| |
| 149 | + | |
| 150 | + | |
| 151 | + | |
146 | 152 |
| |
147 | 153 |
| |
148 | 154 |
| |
|
0 commit comments
Comments
(0)