We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
strict=True
zip
assert_decimal_close
1 parent 96f9e70 commit a4de21bCopy full SHA for a4de21b
numpy_financial/tests/test_financial.py
@@ -26,7 +26,7 @@
26
def assert_decimal_close(actual, expected, tol=Decimal("1e-7")):
27
# Check if both actual and expected are iterable (like arrays)
28
if hasattr(actual, "__iter__") and hasattr(expected, "__iter__"):
29
- for a, e in zip(actual, expected, strict=False):
+ for a, e in zip(actual, expected, strict=True):
30
assert abs(a - e) <= tol
31
else:
32
# For single value comparisons
0 commit comments