From 7f3689d1f9ffb3ae9122a284129b61e64ac30d2d Mon Sep 17 00:00:00 2001 From: DWesl <22566757+DWesl@users.noreply.github.com> Date: Mon, 20 Jun 2022 20:43:31 -0400 Subject: TST: Mark test_submodule.TestSubmodule.test_root_module as xfail on Cygwin --- test/test_submodule.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/test_submodule.py') diff --git a/test/test_submodule.py b/test/test_submodule.py index 2930ce03..98cc5543 100644 --- a/test/test_submodule.py +++ b/test/test_submodule.py @@ -3,8 +3,11 @@ # the BSD License: http://www.opensource.org/licenses/bsd-license.php import os import shutil +import sys from unittest import skipIf +import pytest + import git from git.cmd import Git from git.compat import is_win @@ -433,6 +436,11 @@ class TestSubmodule(TestBase): def test_base_rw(self, rwrepo): self._do_base_tests(rwrepo) + @pytest.mark.xfail( + sys.platform == "cygwin", + reason="Cygwin GitPython can't find submodule SHA", + raises=ValueError + ) @with_rw_repo(k_subm_current, bare=True) def test_base_bare(self, rwrepo): self._do_base_tests(rwrepo) -- cgit v1.2.1 From 2996f402f11565c3ad93aedfe070f4f5f571e72e Mon Sep 17 00:00:00 2001 From: DWesl <22566757+DWesl@users.noreply.github.com> Date: Mon, 20 Jun 2022 21:02:18 -0400 Subject: FIX: Mark the correct test_submodule test as xfail on Cygwin Got the wrong one the first time. --- test/test_submodule.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/test_submodule.py') diff --git a/test/test_submodule.py b/test/test_submodule.py index 98cc5543..d72fe5d3 100644 --- a/test/test_submodule.py +++ b/test/test_submodule.py @@ -436,15 +436,15 @@ class TestSubmodule(TestBase): def test_base_rw(self, rwrepo): self._do_base_tests(rwrepo) + @with_rw_repo(k_subm_current, bare=True) + def test_base_bare(self, rwrepo): + self._do_base_tests(rwrepo) + @pytest.mark.xfail( sys.platform == "cygwin", reason="Cygwin GitPython can't find submodule SHA", raises=ValueError ) - @with_rw_repo(k_subm_current, bare=True) - def test_base_bare(self, rwrepo): - self._do_base_tests(rwrepo) - @skipIf( HIDE_WINDOWS_KNOWN_ERRORS, """ -- cgit v1.2.1