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

Commit0eda0a5

Browse files
authored
TST: Mark test_repo.TestRepo.test_submodules as xfail on Cygwin
1 parent54bae76 commit0eda0a5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎test/test_repo.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@
1111
importos
1212
importpathlib
1313
importpickle
14+
importsys
1415
importtempfile
1516
fromunittestimportmock,skipIf,SkipTest
1617

18+
importpytest
19+
1720
fromgitimport (
1821
InvalidGitRepositoryError,
1922
Repo,
@@ -903,6 +906,11 @@ def test_repo_odbtype(self):
903906
target_type=GitCmdObjectDB
904907
self.assertIsInstance(self.rorepo.odb,target_type)
905908

909+
@pytest.mark.xfail(
910+
sys.platform=="cygwin",
911+
reason="Cygwin GitPython can't find submodule SHA",
912+
raises=ValueError
913+
)
906914
deftest_submodules(self):
907915
self.assertEqual(len(self.rorepo.submodules),1)# non-recursive
908916
self.assertGreaterEqual(len(list(self.rorepo.iter_submodules())),2)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp