bugfix in ApproxNumpy initialisation, use keywords for arguments now
This commit is contained in:
parent
9720c3301a
commit
7bff5866b1
|
@ -211,7 +211,10 @@ class ApproxScalar(ApproxBase):
|
||||||
the pre-specified tolerance.
|
the pre-specified tolerance.
|
||||||
"""
|
"""
|
||||||
if _is_numpy_array(actual):
|
if _is_numpy_array(actual):
|
||||||
return ApproxNumpy(actual, self.abs, self.rel, self.nan_ok) == self.expected
|
return (
|
||||||
|
ApproxNumpy(actual, rel=self.rel, abs=self.abs, nan_ok=self.nan_ok)
|
||||||
|
== self.expected
|
||||||
|
)
|
||||||
|
|
||||||
# Short-circuit exact equality.
|
# Short-circuit exact equality.
|
||||||
if actual == self.expected:
|
if actual == self.expected:
|
||||||
|
|
Loading…
Reference in New Issue