Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1d6abdc

Browse files
committed
Run the tests in test_tree on Windows
This stops skipping them, as they are now working.
1 parent8704d1b commit1d6abdc

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

‎test/test_tree.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,14 @@
55
# the BSD License: https://opensource.org/license/bsd-3-clause/
66

77
fromioimportBytesIO
8-
fromunittestimportskipIf
98

109
fromgit.objectsimportTree,Blob
1110
fromtest.libimportTestBase
12-
fromgit.utilimportHIDE_WINDOWS_KNOWN_ERRORS
1311

1412
importos.pathasosp
1513

1614

1715
classTestTree(TestBase):
18-
@skipIf(
19-
HIDE_WINDOWS_KNOWN_ERRORS,
20-
"""
21-
File "C:\\projects\\gitpython\\git\\cmd.py", line 559, in execute
22-
raise GitCommandNotFound(command, err)
23-
git.exc.GitCommandNotFound: Cmd('git') not found due to: OSError('[WinError 6] The handle is invalid')
24-
cmdline: git cat-file --batch-check""",
25-
)
2616
deftest_serializable(self):
2717
# tree at the given commit contains a submodule as well
2818
roottree=self.rorepo.tree("6c1faef799095f3990e9970bc2cb10aa0221cf9c")
@@ -51,14 +41,6 @@ def test_serializable(self):
5141
testtree._deserialize(stream)
5242
# END for each item in tree
5343

54-
@skipIf(
55-
HIDE_WINDOWS_KNOWN_ERRORS,
56-
"""
57-
File "C:\\projects\\gitpython\\git\\cmd.py", line 559, in execute
58-
raise GitCommandNotFound(command, err)
59-
git.exc.GitCommandNotFound: Cmd('git') not found due to: OSError('[WinError 6] The handle is invalid')
60-
cmdline: git cat-file --batch-check""",
61-
)
6244
deftest_traverse(self):
6345
root=self.rorepo.tree("0.1.6")
6446
num_recursive=0

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp