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_index.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_index.py')
-rw-r--r-- | git/test/test_index.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/git/test/test_index.py b/git/test/test_index.py index 99b35db7..1abe22f4 100644 --- a/git/test/test_index.py +++ b/git/test/test_index.py @@ -26,7 +26,7 @@ from git import ( GitCommandError, CheckoutError, ) -from git.compat import string_types, is_win +from git.compat import string_types, is_win, PY3 from git.exc import ( HookExecutionError, InvalidGitRepositoryError @@ -49,6 +49,7 @@ from git.util import HIDE_WINDOWS_KNOWN_ERRORS, hex_to_bin from gitdb.base import IStream import os.path as osp +from git.cmd import Git class TestIndex(TestBase): @@ -405,6 +406,12 @@ class TestIndex(TestBase): return existing # END num existing helper + @skipIf(HIDE_WINDOWS_KNOWN_ERRORS and Git.is_cygwin(), + """FIXME: File "C:\projects\gitpython\git\test\test_index.py", line 642, in test_index_mutation + self.assertEqual(fd.read(), link_target) + AssertionError: '!<symlink>\xff\xfe/\x00e\x00t\x00c\x00/\x00t\x00h\x00a\x00t\x00\x00\x00' + != '/etc/that' + """) @with_rw_repo('0.1.6') def test_index_mutation(self, rw_repo): index = rw_repo.index @@ -823,7 +830,7 @@ class TestIndex(TestBase): asserted = True assert asserted, "Adding using a filename is not correctly asserted." - @skipIf(HIDE_WINDOWS_KNOWN_ERRORS and sys.version_info[:2] == (2, 7), r""" + @skipIf(HIDE_WINDOWS_KNOWN_ERRORS and not PY3, r""" FIXME: File "C:\projects\gitpython\git\util.py", line 125, in to_native_path_linux return path.replace('\\', '/') UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: ordinal not in range(128)""") |