GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — TST: Mark test_repo.TestRepo.test_submodules as xfail on Cygwin · gitpython-developers/GitPython@0eda0a5

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test
    • test_repo.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/test_repo.py‎

Copy file name to clipboardExpand all lines: test/test_repo.py
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@
1111
import os
1212
import pathlib
1313
import pickle
14+
import sys
1415
import tempfile
1516
from unittest import mock, skipIf, SkipTest
1617

18+
import pytest
19+
1720
from git import (
1821
InvalidGitRepositoryError,
1922
Repo,
@@ -903,6 +906,11 @@ def test_repo_odbtype(self):
903906
target_type = GitCmdObjectDB
904907
self.assertIsInstance(self.rorepo.odb, target_type)
905908

909+
@pytest.mark.xfail(
910+
sys.platform == "cygwin",
911+
reason="Cygwin GitPython can't find submodule SHA",
912+
raises=ValueError
913+
)
906914
def test_submodules(self):
907915
self.assertEqual(len(self.rorepo.submodules), 1) # non-recursive
908916
self.assertGreaterEqual(len(list(self.rorepo.iter_submodules())), 2)

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.