From f8d1349afe9e2f1d84f8c060b95e8cbacc35fbc7 Mon Sep 17 00:00:00 2001 From: Eliah Kagan Date: Sun, 17 Sep 2023 07:07:52 -0400 Subject: [PATCH] No longer skip test_index_mutation on Cygwin As it seems to be working now on Cygwin (maybe not native Windows). --- test/test_index.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/test/test_index.py b/test/test_index.py index f4858a586..06db3aedd 100644 --- a/test/test_index.py +++ b/test/test_index.py @@ -12,7 +12,6 @@ from stat import S_ISLNK, ST_MODE import shutil import tempfile -from unittest import skipIf import pytest @@ -27,16 +26,13 @@ GitCommandError, CheckoutError, ) -from git.cmd import Git from git.compat import is_win from git.exc import HookExecutionError, InvalidGitRepositoryError from git.index.fun import hook_path from git.index.typ import BaseIndexEntry, IndexEntry from git.objects import Blob -from test.lib import TestBase, fixture_path, fixture, with_rw_repo -from test.lib import with_rw_directory -from git.util import Actor, rmtree -from git.util import HIDE_WINDOWS_KNOWN_ERRORS, hex_to_bin +from test.lib import TestBase, fixture, fixture_path, with_rw_directory, with_rw_repo +from git.util import Actor, hex_to_bin, rmtree from gitdb.base import IStream HOOKS_SHEBANG = "#!/usr/bin/env sh\n" @@ -434,14 +430,6 @@ def _count_existing(self, repo, files): # 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: '!\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