|
17 | 17 | fromfunctoolsimportwraps
|
18 | 18 |
|
19 | 19 | fromgit.compatimportis_win
|
20 |
| -fromgitdb.utilimport (# NOQA |
| 20 | +fromgitdb.utilimport (# 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_winandos.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 | exceptExceptionasex:
|
79 |
| -fromgit.test.lib.helperimportHIDE_WINDOWS_KNOWN_ERRORS |
80 | 85 | ifHIDE_WINDOWS_KNOWN_ERRORS:
|
81 | 86 | raiseSkipTest("FIXME: fails with: PermissionError\n %s",ex)
|
82 | 87 | else:
|
|