Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork940
Commit7604da1
committed
Warn if HIDE_WINDOWS_*_ERRORS set in environment
This warns if the HIDE_WINDOWS_KNOWN_ERRORS orHIDE_WINDOWS_FREEZE_ERRORS environment variables are set. Thesebehave unexpectedly, including (and especially) in their effect onthe same-named git.util module attributes, and neither theireffects nor those of those attributes are documented in a way thatwould have supported code outside the project relying on theirspecific semantics.The new warning message characterizes their status as deprecated.- This is now the case for HIDE_WINDOWS_KNOWN_ERRORS, and almost so for the same-named attribute, whose existence (though not its meaning) can technically be relied on due to inclusion in `__all__` (which this does *not* change).- But the HIDE_WINDOWS_FREEZE_ERRORS attribute was never guaranteed even to exist, so technically neither it nor the same-named environment variable are not *even* deprecated. The attribute's presence has never been reflected in the public interface of any GitPython component in any way.However, these attributes are still used by the tests. Furthermore,in the case of HIDE_WINDOWS_KNOWN_ERRORS, setting it is the onlyway to disable the behavior of converting errors from some filedeletion operations into SkipTest exceptions on Windows. Since thatbehavior has not yet changed, but is unlikely to be desired outsideof testing, no *attributes* are deprecated at this time, and noeffort to warn from accessing or using attributes is attempted.1 parent100ab98 commit7604da1
1 file changed
+17
-3
lines changedLines changed: 17 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
109 | 109 |
| |
110 | 110 |
| |
111 | 111 |
| |
112 |
| - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
113 | 127 |
| |
114 | 128 |
| |
115 | 129 |
| |
116 | 130 |
| |
117 | 131 |
| |
118 |
| - | |
119 |
| - | |
| 132 | + | |
| 133 | + | |
120 | 134 |
| |
121 | 135 |
| |
122 | 136 |
| |
|
0 commit comments
Comments
(0)