diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-07-03 12:01:54 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-07-03 12:01:54 +0200 |
commit | 6d0f693184884ffac97908397b074e208c63742b (patch) | |
tree | 9eea565fbc863c41b5216ea27131cf34f86cbf9a /git/remote.py | |
parent | 040108747e2f868c61f870799a78850b792ddd0a (diff) | |
download | gitpython-6d0f693184884ffac97908397b074e208c63742b.tar.gz |
test(remote): make assertion less verbose
Diffstat (limited to 'git/remote.py')
-rw-r--r-- | git/remote.py | 5 |
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)) |