Need to iterate over the flattened array.
This commit is contained in:
@@ -211,7 +211,7 @@ class ApproxScalar(ApproxBase):
|
||||
the pre-specified tolerance.
|
||||
"""
|
||||
if _is_numpy_array(actual):
|
||||
return all(a == self for a in actual)
|
||||
return all(a == self for a in actual.flat)
|
||||
|
||||
# Short-circuit exact equality.
|
||||
if actual == self.expected:
|
||||
|
||||
Reference in New Issue
Block a user