| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4e5ef73 commit 74c7ed0
9 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -39,7 +39,7 @@ | |||
| 39 | 39 | import logging | |
| 40 | 40 | import uuid | |
| 41 | 41 | from unittest.case import SkipTest | |
| 42 | - from git.test.lib.helper import HIDE_WINDOWS_KNOWN_ERRORS | ||
| 42 | + from git.util import HIDE_WINDOWS_KNOWN_ERRORS | ||
| 43 | 43 | from git.objects.base import IndexObject, Object | |
| 44 | 44 | ||
| 45 | 45 | __all__ = ["Submodule", "UpdateProgress"] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,11 +31,6 @@ | |||
| 31 | 31 | ||
| 32 | 32 | log = logging.getLogger('git.util') | |
| 33 | 33 | ||
| 34 | - #: We need an easy way to see if Appveyor TCs start failing, | ||
| 35 | - #: so the errors marked with this var are considered "acknowledged" ones, awaiting remedy, | ||
| 36 | - #: till then, we wish to hide them. | ||
| 37 | - HIDE_WINDOWS_KNOWN_ERRORS = is_win and os.environ.get('HIDE_WINDOWS_KNOWN_ERRORS', True) | ||
| 38 | - | ||
| 39 | 34 | #{ Routines | |
| 40 | 35 | ||
| 41 | 36 | ||
@@ -289,7 +284,7 @@ def remote_repo_creator(self): | |||
| 289 | 284 | You can also run the daemon on a different port by passing --port=<port>" | |
| 290 | 285 | and setting the environment variable GIT_PYTHON_TEST_GIT_DAEMON_PORT to <port> | |
| 291 | 286 | """ % temp_dir) | |
| 292 | - from nose import SkipTest | ||
| 287 | + from unittest import SkipTest | ||
| 293 | 288 | raise SkipTest(msg) if is_win else AssertionError(msg) | |
| 294 | 289 | # END make assertion | |
| 295 | 290 | # END catch ls remote error | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,7 +6,7 @@ | |||
| 6 | 6 | from unittest.case import skipIf | |
| 7 | 7 | ||
| 8 | 8 | from git.compat import PY3 | |
| 9 | - from git.test.lib.helper import HIDE_WINDOWS_KNOWN_ERRORS | ||
| 9 | + from git.util import HIDE_WINDOWS_KNOWN_ERRORS | ||
| 10 | 10 | ||
| 11 | 11 | from .lib import ( | |
| 12 | 12 | TestBigRepoR | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -128,7 +128,7 @@ def test_add_unicode(self, rw_repo): | |||
| 128 | 128 | try: | |
| 129 | 129 | file_path.encode(sys.getfilesystemencoding()) | |
| 130 | 130 | except UnicodeEncodeError: | |
| 131 | - from nose import SkipTest | ||
| 131 | + from unittest import SkipTest | ||
| 132 | 132 | raise SkipTest("Environment doesn't support unicode filenames") | |
| 133 | 133 | ||
| 134 | 134 | with open(file_path, "wb") as fp: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -43,7 +43,7 @@ | |||
| 43 | 43 | fixture, | |
| 44 | 44 | with_rw_repo | |
| 45 | 45 | ) | |
| 46 | - from git.test.lib.helper import HIDE_WINDOWS_KNOWN_ERRORS | ||
| 46 | + from git.util import HIDE_WINDOWS_KNOWN_ERRORS | ||
| 47 | 47 | from git.test.lib import with_rw_directory | |
| 48 | 48 | from git.util import Actor, rmtree | |
| 49 | 49 | from gitdb.base import IStream | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -50,11 +50,11 @@ | |||
| 50 | 50 | assert_true, | |
| 51 | 51 | raises | |
| 52 | 52 | ) | |
| 53 | - from git.test.lib.helper import HIDE_WINDOWS_KNOWN_ERRORS | ||
| 53 | + from git.util import HIDE_WINDOWS_KNOWN_ERRORS | ||
| 54 | 54 | from git.test.lib import with_rw_directory | |
| 55 | 55 | from git.util import join_path_native, rmtree, rmfile | |
| 56 | 56 | from gitdb.util import bin_to_hex | |
| 57 | - from nose import SkipTest | ||
| 57 | + from unittest import SkipTest | ||
| 58 | 58 | ||
| 59 | 59 | import functools as fnt | |
| 60 | 60 | import os.path as osp | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,7 +21,7 @@ | |||
| 21 | 21 | with_rw_repo | |
| 22 | 22 | ) | |
| 23 | 23 | from git.test.lib import with_rw_directory | |
| 24 | - from git.test.lib.helper import HIDE_WINDOWS_KNOWN_ERRORS | ||
| 24 | + from git.util import HIDE_WINDOWS_KNOWN_ERRORS | ||
| 25 | 25 | from git.util import to_native_path_linux, join_path_native | |
| 26 | 26 | ||
| 27 | 27 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ | |||
| 13 | 13 | Tree, | |
| 14 | 14 | Blob | |
| 15 | 15 | ) | |
| 16 | - from git.test.lib.helper import HIDE_WINDOWS_KNOWN_ERRORS | ||
| 16 | + from git.util import HIDE_WINDOWS_KNOWN_ERRORS | ||
| 17 | 17 | from git.test.lib import TestBase | |
| 18 | 18 | ||
| 19 | 19 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,7 +17,7 @@ | |||
| 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,7 +44,13 @@ | |||
| 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: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments