changelog, fix branch coverage

This commit is contained in:
Daniel Hahler 2019-04-05 12:12:29 +02:00
parent 47d92a0d96
commit 0f965e57a2
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
Assertion failure messages for sequences and dicts contain the number of different items now.

View File

@ -297,7 +297,7 @@ def _compare_eq_sequence(left, right, verbose=0):
if len_diff > 0:
dir_with_more = "Left"
extra = saferepr(left[len_right])
elif len_diff < 0:
else:
len_diff = 0 - len_diff
dir_with_more = "Right"
extra = saferepr(right[len_left])