Skip to content

Re-enable Cygwin CI and get most tests passing #1455

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Jun 21, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
TST: Mark test_repo.TestRepo.test_submodules as xfail on Cygwin
  • Loading branch information
DWesl authored Jun 21, 2022
commit 0eda0a54b3093681ed5431c003ec4994aecfe273
8 changes: 8 additions & 0 deletions test/test_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@
import os
import pathlib
import pickle
import sys
import tempfile
from unittest import mock, skipIf, SkipTest

import pytest

from git import (
InvalidGitRepositoryError,
Repo,
Expand Down Expand Up @@ -903,6 +906,11 @@ def test_repo_odbtype(self):
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)
Expand Down