diff options
author | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-10-16 22:02:51 +0200 |
---|---|---|
committer | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-10-16 22:06:10 +0200 |
commit | 5962373da1444d841852970205bff77d5ca9377f (patch) | |
tree | ad6d5d57fd700ebb7beb4ab3e3686d8791ccc093 /git/test/test_submodule.py | |
parent | ec731f448d304dfe1f9269cc94de405aeb3a0665 (diff) | |
download | gitpython-5962373da1444d841852970205bff77d5ca9377f.tar.gz |
cygwin, appveyor, #533: Enable actual failures, hide certain 2+2 cases
Diffstat (limited to 'git/test/test_submodule.py')
-rw-r--r-- | git/test/test_submodule.py | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/git/test/test_submodule.py b/git/test/test_submodule.py index bbf242c0..fcaad04b 100644 --- a/git/test/test_submodule.py +++ b/git/test/test_submodule.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php import os @@ -6,24 +7,34 @@ from unittest.case import skipIf import git from git.cmd import Git -from git.compat import string_types, is_win +from git.compat import ( + string_types, + is_win, +) from git.exc import ( InvalidGitRepositoryError, RepositoryDirtyError ) from git.objects.submodule.base import Submodule -from git.objects.submodule.root import RootModule, RootUpdateProgress +from git.objects.submodule.root import ( + RootModule, + RootUpdateProgress, +) from git.repo.fun import ( find_git_dir, - touch + touch, ) from git.test.lib import ( TestBase, - with_rw_repo + with_rw_repo, ) from git.test.lib import with_rw_directory -from git.util import HIDE_WINDOWS_KNOWN_ERRORS -from git.util import to_native_path_linux, join_path_native +from git.util import ( + to_native_path_linux, + join_path_native, + HIDE_WINDOWS_KNOWN_ERRORS, +) + import os.path as osp @@ -673,6 +684,13 @@ class TestSubmodule(TestBase): url=empty_repo_dir, no_checkout=checkout_mode and True or False) # end for each checkout mode + @skipIf(HIDE_WINDOWS_KNOWN_ERRORS and Git.is_cygwin(), + """FIXME: ile "C:\projects\gitpython\git\cmd.py", line 671, in execute + raise GitCommandError(command, status, stderr_value, stdout_value) + GitCommandError: Cmd('git') failed due to: exit code(128) + cmdline: git add 1__Xava verbXXten 1_test _myfile 1_test_other_file 1_XXava-----verbXXten + stderr: 'fatal: pathspec '"1__çava verböten"' did not match any files' + """) @with_rw_directory def test_git_submodules_and_add_sm_with_new_commit(self, rwdir): parent = git.Repo.init(osp.join(rwdir, 'parent')) |