Skip to content

Commit 7f3689d

Browse files
authored
TST: Mark test_submodule.TestSubmodule.test_root_module as xfail on Cygwin
1 parent 0eda0a5 commit 7f3689d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎test/test_submodule.py

+8
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
44
import os
55
import shutil
6+
import sys
67
from unittest import skipIf
78

9+
import pytest
10+
811
import git
912
from git.cmd import Git
1013
from git.compat import is_win
@@ -433,6 +436,11 @@ def _do_base_tests(self, rwrepo):
433436
def test_base_rw(self, rwrepo):
434437
self._do_base_tests(rwrepo)
435438

439+
@pytest.mark.xfail(
440+
sys.platform == "cygwin",
441+
reason="Cygwin GitPython can't find submodule SHA",
442+
raises=ValueError
443+
)
436444
@with_rw_repo(k_subm_current, bare=True)
437445
def test_base_bare(self, rwrepo):
438446
self._do_base_tests(rwrepo)

0 commit comments

Comments
 (0)