|
17 | 17 | from functools import wraps |
18 | 18 |
|
19 | 19 | from git.compat import is_win |
20 | | -from gitdb.util import ( # NOQA |
| 20 | +from gitdb.util import (# NOQA |
21 | 21 | make_sha, |
22 | 22 | LockedFD, # @UnusedImport |
23 | 23 | file_contents_ro, # @UnusedImport |
|
44 | 44 | __all__ = ("stream_copy", "join_path", "to_native_path_windows", "to_native_path_linux", |
45 | 45 | "join_path_native", "Stats", "IndexFileSHA1Writer", "Iterable", "IterableList", |
46 | 46 | "BlockingLockFile", "LockFile", 'Actor', 'get_user_id', 'assure_directory_exists', |
47 | | - 'RemoteProgress', 'CallableRemoteProgress', 'rmtree', 'unbare_repo') |
| 47 | + 'RemoteProgress', 'CallableRemoteProgress', 'rmtree', 'unbare_repo', |
| 48 | + 'HIDE_WINDOWS_KNOWN_ERRORS') |
| 49 | + |
| 50 | +#: We need an easy way to see if Appveyor TCs start failing, |
| 51 | +#: so the errors marked with this var are considered "acknowledged" ones, awaiting remedy, |
| 52 | +#: till then, we wish to hide them. |
| 53 | +HIDE_WINDOWS_KNOWN_ERRORS = is_win and os.environ.get('HIDE_WINDOWS_KNOWN_ERRORS', True) |
48 | 54 |
|
49 | 55 | #{ Utility Methods |
50 | 56 |
|
@@ -76,7 +82,6 @@ def onerror(func, path, exc_info): |
76 | 82 | try: |
77 | 83 | func(path) # Will scream if still not possible to delete. |
78 | 84 | except Exception as ex: |
79 | | - from git.test.lib.helper import HIDE_WINDOWS_KNOWN_ERRORS |
80 | 85 | if HIDE_WINDOWS_KNOWN_ERRORS: |
81 | 86 | raise SkipTest("FIXME: fails with: PermissionError\n %s", ex) |
82 | 87 | else: |
|
0 commit comments