Skip to content

Commit da07a64

Browse files
puneetdixit200codex
andcommitted
test: allow alternate bad fetch errors
Co-authored-by: OpenAI Codex <codex@openai.com>
1 parent fe4b66d commit da07a64

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

test/test_remote.py

Lines 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)