summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSjoerd Langkemper <sjoerd-github@linuxonly.nl>2021-11-08 17:06:37 +0000
committerSebastian Thiel <sebastian.thiel@icloud.com>2021-11-13 15:20:20 +0800
commit699e223c51d99d1fc8d05b2b0fe0ef1e2ee7fd01 (patch)
treeeb4b16f242a9689a520de643755907515fc74b7c
parent9240de9f788396c45199cd3d9fa7fdbd8a5666c4 (diff)
downloadgitpython-699e223c51d99d1fc8d05b2b0fe0ef1e2ee7fd01.tar.gz
Test raise_if_error
-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(