summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/test_remote.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_remote.py b/test/test_remote.py
index fedfa207..761a7a3e 100644
--- a/test/test_remote.py
+++ b/test/test_remote.py
@@ -154,6 +154,12 @@ class TestRemote(TestBase):
# END error checking
# END for each info
+ if any([info.flags & info.ERROR for info in results]):
+ self.assertRaises(GitCommandError, results.raise_if_error)
+ else:
+ # No errors, so this should do nothing
+ results.raise_if_error()
+
def _do_test_fetch_info(self, repo):
self.assertRaises(ValueError, FetchInfo._from_line, repo, "nonsense", '')
self.assertRaises(