Skip to content

Commit 6d0f693

Browse files
committed
test(remote): make assertion less verbose
1 parent 0401087 commit 6d0f693

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

git/remote.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,8 +573,9 @@ def my_progress_handler(line):
573573
fp.close()
574574

575575
# NOTE: We assume to fetch at least enough progress lines to allow matching each fetch head line with it.
576-
assert len(fetch_info_lines) >= len(fetch_head_info), "len(%s) <= len(%s)" % (fetch_head_info,
577-
fetch_info_lines)
576+
l_fil = len(fetch_info_lines)
577+
l_fhi = len(fetch_head_info)
578+
assert l_fil >= l_fhi, "len(%s) <= len(%s)" % (l_fil, l_fhi)
578579

579580
output.extend(FetchInfo._from_line(self.repo, err_line, fetch_line)
580581
for err_line, fetch_line in zip(fetch_info_lines, fetch_head_info))

0 commit comments

Comments
 (0)