diff options
author | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-10-03 03:22:18 +0200 |
---|---|---|
committer | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-10-03 04:00:11 +0200 |
commit | 6df78b19b7786b15c664a7a1e0bcbb3e7c80f8da (patch) | |
tree | a0cacbd94958abc842059907aca9b9c07836bdf7 /git/test/test_index.py | |
parent | 1b440827a04ad23efb891eff28d90f172723c75d (diff) | |
download | gitpython-6df78b19b7786b15c664a7a1e0bcbb3e7c80f8da.tar.gz |
Appveyor: Add and set HIDE_WINDOWS_KNOWN_ERRORS=Falsewinerr_show
+ Collect all "acknowledged" failing TCs on Appveyor and use
"HIDE_WINDOWS_KNOWN_ERRORS" var to hide them.
Diffstat (limited to 'git/test/test_index.py')
-rw-r--r-- | git/test/test_index.py | 50 |
1 files changed, 28 insertions, 22 deletions
diff --git a/git/test/test_index.py b/git/test/test_index.py index 1ffbe9e2..26efcb34 100644 --- a/git/test/test_index.py +++ b/git/test/test_index.py @@ -5,17 +5,16 @@ # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php -from git.test.lib import ( - TestBase, - fixture_path, - fixture, - with_rw_repo -) -from git.util import Actor, rmtree -from git.exc import ( - HookExecutionError, - InvalidGitRepositoryError +from io import BytesIO +import os +from stat import ( + S_ISLNK, + ST_MODE ) +import sys +import tempfile +from unittest.case import skipIf + from git import ( IndexFile, Repo, @@ -28,24 +27,27 @@ from git import ( CheckoutError, ) from git.compat import string_types, is_win -from gitdb.util import hex_to_bin -import os -import sys -import tempfile -from stat import ( - S_ISLNK, - ST_MODE +from git.exc import ( + HookExecutionError, + InvalidGitRepositoryError ) - -from io import BytesIO -from gitdb.base import IStream -from git.objects import Blob +from git.index.fun import hook_path from git.index.typ import ( BaseIndexEntry, IndexEntry ) -from git.index.fun import hook_path +from git.objects import Blob +from git.test.lib import ( + TestBase, + fixture_path, + fixture, + with_rw_repo +) +from git.test.lib.helper import HIDE_WINDOWS_KNOWN_ERRORS from git.test.lib import with_rw_directory +from git.util import Actor, rmtree +from gitdb.base import IStream +from gitdb.util import hex_to_bin class TestIndex(TestBase): @@ -821,6 +823,10 @@ class TestIndex(TestBase): asserted = True assert asserted, "Adding using a filename is not correctly asserted." + @skipIf(HIDE_WINDOWS_KNOWN_ERRORS and is_win and sys.version_info[:2] == (2, 7), 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)""") @with_rw_directory def test_add_utf8P_path(self, rw_dir): # NOTE: fp is not a Unicode object in python 2 (which is the source of the problem) |