diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2022-06-21 11:45:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-21 11:45:00 +0800 |
commit | f0c6e1164f390081a27de952552aa83d34035f2a (patch) | |
tree | fcd116711c75c126c2fd083bb6a8c78ced5870ef /test/test_repo.py | |
parent | 6660b8463b86ea92ff56baebfcebc7c8a6e933fa (diff) | |
parent | 2996f402f11565c3ad93aedfe070f4f5f571e72e (diff) | |
download | gitpython-f0c6e1164f390081a27de952552aa83d34035f2a.tar.gz |
Merge pull request #1455 from DWesl/patch-1
Re-enable Cygwin CI and get most tests passing
Diffstat (limited to 'test/test_repo.py')
-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) |