added conversion of other_side to numpy array
This commit is contained in:
parent
63d985c6d3
commit
c07752649f
|
@ -163,6 +163,9 @@ class ApproxNumpy(ApproxBase):
|
||||||
self._approx_scalar, self.expected.tolist()
|
self._approx_scalar, self.expected.tolist()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# convert other_side to numpy array to ensure shape attribute is available
|
||||||
|
other_side = _as_numpy_array(other_side)
|
||||||
|
|
||||||
if np_array_shape != other_side.shape:
|
if np_array_shape != other_side.shape:
|
||||||
return [
|
return [
|
||||||
"Impossible to compare arrays with different shapes.",
|
"Impossible to compare arrays with different shapes.",
|
||||||
|
|
Loading…
Reference in New Issue