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 — test: allow alternate bad fetch errors · gitpython-developers/GitPython@da07a64

File tree

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

‎test/test_remote.py‎

Copy file name to clipboardExpand all lines: test/test_remote.py
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,12 @@ def test_multiple_urls(self, rw_repo):
687687

688688
def test_fetch_error(self):
689689
rem = self.rorepo.remote("origin")
690-
with self.assertRaisesRegex(GitCommandError, "[Cc]ouldn't find remote ref __BAD_REF__"):
690+
msg = (
691+
r"[Cc]ouldn't find remote ref __BAD_REF__|"
692+
r"could not read Username|"
693+
r"expected flush after ref listing"
694+
)
695+
with self.assertRaisesRegex(GitCommandError, msg):
691696
rem.fetch("__BAD_REF__")
692697

693698
@with_rw_repo("0.1.6", bare=False)

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.