summaryrefslogtreecommitdiff
path: root/git/remote.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-07-03 12:01:54 +0200
committerSebastian Thiel <byronimo@gmail.com>2015-07-03 12:01:54 +0200
commit6d0f693184884ffac97908397b074e208c63742b (patch)
tree9eea565fbc863c41b5216ea27131cf34f86cbf9a /git/remote.py
parent040108747e2f868c61f870799a78850b792ddd0a (diff)
downloadgitpython-6d0f693184884ffac97908397b074e208c63742b.tar.gz
test(remote): make assertion less verbose
Diffstat (limited to 'git/remote.py')
-rw-r--r--git/remote.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/git/remote.py b/git/remote.py
index c9da1979..4871ea5f 100644
--- a/git/remote.py
+++ b/git/remote.py
@@ -573,8 +573,9 @@ class Remote(LazyMixin, Iterable):
fp.close()
# NOTE: We assume to fetch at least enough progress lines to allow matching each fetch head line with it.
- assert len(fetch_info_lines) >= len(fetch_head_info), "len(%s) <= len(%s)" % (fetch_head_info,
- fetch_info_lines)
+ l_fil = len(fetch_info_lines)
+ l_fhi = len(fetch_head_info)
+ assert l_fil >= l_fhi, "len(%s) <= len(%s)" % (l_fil, l_fhi)
output.extend(FetchInfo._from_line(self.repo, err_line, fetch_line)
for err_line, fetch_line in zip(fetch_info_lines, fetch_head_info))