diff options
author | DWesl <22566757+DWesl@users.noreply.github.com> | 2022-06-20 20:41:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-20 20:41:36 -0400 |
commit | 0eda0a54b3093681ed5431c003ec4994aecfe273 (patch) | |
tree | e0f770bf08429b33d68837bd3475b7e08f266c9f | |
parent | 54bae76a88acfc4ddb60f32938ccc8febd0c5a7d (diff) | |
download | gitpython-0eda0a54b3093681ed5431c003ec4994aecfe273.tar.gz |
TST: Mark test_repo.TestRepo.test_submodules as xfail on Cygwin
-rw-r--r-- | test/test_repo.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_repo.py b/test/test_repo.py index 30db1392..75b590fe 100644 --- a/test/test_repo.py +++ b/test/test_repo.py @@ -11,9 +11,12 @@ import itertools import os import pathlib import pickle +import sys import tempfile from unittest import mock, skipIf, SkipTest +import pytest + from git import ( InvalidGitRepositoryError, Repo, @@ -903,6 +906,11 @@ class TestRepo(TestBase): target_type = GitCmdObjectDB self.assertIsInstance(self.rorepo.odb, target_type) + @pytest.mark.xfail( + sys.platform == "cygwin", + reason="Cygwin GitPython can't find submodule SHA", + raises=ValueError + ) def test_submodules(self): self.assertEqual(len(self.rorepo.submodules), 1) # non-recursive self.assertGreaterEqual(len(list(self.rorepo.iter_submodules())), 2) |