| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4df1ec6 commit d8fc2e4
8 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -51,10 +51,7 @@ install: | |||
| 51 | 51 | conda info -a & | |
| 52 | 52 | conda install --yes --quiet pip | |
| 53 | 53 | ) | |
| 54 | - - pip install nose ddt wheel codecov | ||
| 55 | - - IF "%PYTHON_VERSION%" == "2.7" ( | ||
| 56 | - pip install mock | ||
| 57 | - ) | ||
| 54 | + - pip install -r test-requirements.txt | ||
| 58 | 55 | ||
| 59 | 56 | ## Copied from `init-tests-after-clone.sh`. | |
| 60 | 57 | # | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,14 +1,10 @@ | |||
| 1 | 1 | language: python | |
| 2 | 2 | python: | |
| 3 | - - "2.6" | ||
| 4 | 3 | - "2.7" | |
| 5 | 4 | - "3.3" | |
| 6 | 5 | - "3.4" | |
| 7 | 6 | - "3.5" | |
| 8 | 7 | # - "pypy" - won't work as smmap doesn't work (see gitdb/.travis.yml for details) | |
| 9 | - matrix: | ||
| 10 | - allow_failures: | ||
| 11 | - - python: "2.6" | ||
| 12 | 8 | git: | |
| 13 | 9 | # a higher depth is needed for most of the tests - must be high enough to not actually be shallow | |
| 14 | 10 | # as we clone our own repository in the process | |
@@ -17,7 +13,8 @@ install: | |||
| 17 | 13 | - python --version; git --version | |
| 18 | 14 | - git submodule update --init --recursive | |
| 19 | 15 | - git fetch --tags | |
| 20 | - - pip install codecov flake8 ddt sphinx | ||
| 16 | + - pip install -r test-requirements.txt | ||
| 17 | + - pip install codecov sphinx | ||
| 21 | 18 | ||
| 22 | 19 | # generate some reflog as git-python tests need it (in master) | |
| 23 | 20 | - ./init-tests-after-clone.sh | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -900,9 +900,6 @@ def test_is_ancestor(self): | |||
| 900 | 900 | for i, j in itertools.permutations([c1, 'ffffff', ''], r=2): | |
| 901 | 901 | self.assertRaises(GitCommandError, repo.is_ancestor, i, j) | |
| 902 | 902 | ||
| 903 | - # @skipIf(HIDE_WINDOWS_KNOWN_ERRORS, | ||
| 904 | - # "FIXME: helper.wrapper fails with: PermissionError: [WinError 5] Access is denied: " | ||
| 905 | - # "'C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\test_work_tree_unsupportedryfa60di\\master_repo\\.git\\objects\\pack\\pack-bc9e0787aef9f69e1591ef38ea0a6f566ec66fe3.idx") # noqa E501 | ||
| 906 | 903 | @with_rw_directory | |
| 907 | 904 | def test_work_tree_unsupported(self, rw_dir): | |
| 908 | 905 | git = Git(rw_dir) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -730,7 +730,7 @@ def test_git_submodules_and_add_sm_with_new_commit(self, rwdir): | |||
| 730 | 730 | assert commit_sm.binsha == sm_too.binsha | |
| 731 | 731 | assert sm_too.binsha != sm.binsha | |
| 732 | 732 | ||
| 733 | - # @skipIf(HIDE_WINDOWS_KNOWN_ERRORS, | ||
| 733 | + # @skipIf(HIDE_WINDOWS_KNOWN_ERRORS, ## ACTUALLY skipped by `git.submodule.base#L869`. | ||
| 734 | 734 | # "FIXME: helper.wrapper fails with: PermissionError: [WinError 5] Access is denied: " | |
| 735 | 735 | # "'C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\test_work_tree_unsupportedryfa60di\\master_repo\\.git\\objects\\pack\\pack-bc9e0787aef9f69e1591ef38ea0a6f566ec66fe3.idx") # noqa E501 | |
| 736 | 736 | @with_rw_directory | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -56,7 +56,7 @@ | |||
| 56 | 56 | #: so the errors marked with this var are considered "acknowledged" ones, awaiting remedy, | |
| 57 | 57 | #: till then, we wish to hide them. | |
| 58 | 58 | HIDE_WINDOWS_KNOWN_ERRORS = is_win and os.environ.get('HIDE_WINDOWS_KNOWN_ERRORS', True) | |
| 59 | - HIDE_WINDOWS_FREEZE_ERRORS = is_win and os.environ.get('HIDE_WINDOWS_FREEZE_ERRORS', HIDE_WINDOWS_KNOWN_ERRORS) | ||
| 59 | + HIDE_WINDOWS_FREEZE_ERRORS = is_win and os.environ.get('HIDE_WINDOWS_FREEZE_ERRORS', True) | ||
| 60 | 60 | ||
| 61 | 61 | #{ Utility Methods | |
| 62 | 62 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,2 @@ | |||
| 1 | 1 | gitdb>=0.6.4 | |
| 2 | - ddt | ||
| 3 | - mock | ||
| 2 | + ddt>=1.1.1 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -68,7 +68,7 @@ def _stamp_version(filename): | |||
| 68 | 68 | extras_require = { | |
| 69 | 69 | ':python_version == "2.6"': ['ordereddict'], | |
| 70 | 70 | } | |
| 71 | - test_requires = ['ddt'] | ||
| 71 | + test_requires = ['ddt>=1.1.1'] | ||
| 72 | 72 | if sys.version_info[:2] < (2, 7): | |
| 73 | 73 | test_requires.append('mock') | |
| 74 | 74 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,4 +3,4 @@ | |||
| 3 | 3 | coverage | |
| 4 | 4 | flake8 | |
| 5 | 5 | nose | |
| 6 | - mock | ||
| 6 | + mock; python_version<='2.7' | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments