We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe4b66d commit da07a64Copy full SHA for da07a64
1 file changed
test/test_remote.py
@@ -687,7 +687,12 @@ def test_multiple_urls(self, rw_repo):
687
688
def test_fetch_error(self):
689
rem = self.rorepo.remote("origin")
690
- with self.assertRaisesRegex(GitCommandError, "[Cc]ouldn't find remote ref __BAD_REF__"):
+ 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):
696
rem.fetch("__BAD_REF__")
697
698
@with_rw_repo("0.1.6", bare=False)
0 commit comments