Merge 293ece6932
into ac41898755
This commit is contained in:
commit
d1fbd2445d
2
AUTHORS
2
AUTHORS
|
@ -296,6 +296,7 @@ Milan Lesnek
|
||||||
Miro Hrončok
|
Miro Hrončok
|
||||||
mrbean-bremen
|
mrbean-bremen
|
||||||
Nathan Goldbaum
|
Nathan Goldbaum
|
||||||
|
Nathan Sala
|
||||||
Nathaniel Compton
|
Nathaniel Compton
|
||||||
Nathaniel Waisbrot
|
Nathaniel Waisbrot
|
||||||
Ned Batchelder
|
Ned Batchelder
|
||||||
|
@ -449,6 +450,7 @@ Xuan Luong
|
||||||
Xuecong Liao
|
Xuecong Liao
|
||||||
Yannick Péroux
|
Yannick Péroux
|
||||||
Yao Xiao
|
Yao Xiao
|
||||||
|
Yechiel Vizel
|
||||||
Yoav Caspi
|
Yoav Caspi
|
||||||
Yuliang Shao
|
Yuliang Shao
|
||||||
Yusuke Kadowaki
|
Yusuke Kadowaki
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Fix approx wrong error description, when using to compare 2 dicts which are not in the same order - printing all values as wrong.
|
|
@ -257,9 +257,8 @@ class ApproxMapping(ApproxBase):
|
||||||
max_abs_diff = -math.inf
|
max_abs_diff = -math.inf
|
||||||
max_rel_diff = -math.inf
|
max_rel_diff = -math.inf
|
||||||
different_ids = []
|
different_ids = []
|
||||||
for (approx_key, approx_value), other_value in zip(
|
for approx_key, approx_value in approx_side_as_map.items():
|
||||||
approx_side_as_map.items(), other_side.values()
|
other_value = other_side[approx_key]
|
||||||
):
|
|
||||||
if approx_value != other_value:
|
if approx_value != other_value:
|
||||||
if approx_value.expected is not None and other_value is not None:
|
if approx_value.expected is not None and other_value is not None:
|
||||||
max_abs_diff = max(
|
max_abs_diff = max(
|
||||||
|
|
Loading…
Reference in New Issue