summaryrefslogtreecommitdiff
path: root/git/test/test_tree.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/test/test_tree.py')
-rw-r--r--git/test/test_tree.py20
1 files changed, 17 insertions, 3 deletions
diff --git a/git/test/test_tree.py b/git/test/test_tree.py
index f9282411..1e0a5122 100644
--- a/git/test/test_tree.py
+++ b/git/test/test_tree.py
@@ -4,18 +4,27 @@
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+from io import BytesIO
import os
-from git.test.lib import TestBase
+import sys
+from unittest.case import skipIf
+
from git import (
Tree,
Blob
)
-
-from io import BytesIO
+from git.compat import is_win
+from git.test.lib.helper import HIDE_WINDOWS_KNOWN_ERRORS
+from git.test.lib import TestBase
class TestTree(TestBase):
+ @skipIf(HIDE_WINDOWS_KNOWN_ERRORS and is_win and sys.version_info[:2] == (3, 4), """
+ File "C:\projects\gitpython\git\cmd.py", line 559, in execute
+ raise GitCommandNotFound(command, err)
+ git.exc.GitCommandNotFound: Cmd('git') not found due to: OSError('[WinError 6] The handle is invalid')
+ cmdline: git cat-file --batch-check""")
def test_serializable(self):
# tree at the given commit contains a submodule as well
roottree = self.rorepo.tree('6c1faef799095f3990e9970bc2cb10aa0221cf9c')
@@ -44,6 +53,11 @@ class TestTree(TestBase):
testtree._deserialize(stream)
# END for each item in tree
+ @skipIf(HIDE_WINDOWS_KNOWN_ERRORS and is_win and sys.version_info[:2] == (3, 4), """
+ File "C:\projects\gitpython\git\cmd.py", line 559, in execute
+ raise GitCommandNotFound(command, err)
+ git.exc.GitCommandNotFound: Cmd('git') not found due to: OSError('[WinError 6] The handle is invalid')
+ cmdline: git cat-file --batch-check""")
def test_traverse(self):
root = self.rorepo.tree('0.1.6')
num_recursive = 0