Skip to content

Commit

Permalink
Run the tests in test_tree on Windows
Browse files Browse the repository at this point in the history
This stops skipping them, as they are now working.
  • Loading branch information
EliahKagan committed Sep 25, 2023
1 parent 8704d1b commit 1d6abdc
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions test/test_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,14 @@
# the BSD License: https://opensource.org/license/bsd-3-clause/

from io import BytesIO
from unittest import skipIf

from git.objects import Tree, Blob
from test.lib import TestBase
from git.util import HIDE_WINDOWS_KNOWN_ERRORS

import os.path as osp


class TestTree(TestBase):
@skipIf(
HIDE_WINDOWS_KNOWN_ERRORS,
"""
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")
Expand Down Expand Up @@ -51,14 +41,6 @@ def test_serializable(self):
testtree._deserialize(stream)
# END for each item in tree

@skipIf(
HIDE_WINDOWS_KNOWN_ERRORS,
"""
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
Expand Down

0 comments on commit 1d6abdc

Please sign in to comment.