Skip to content

Commit a4de21b

Browse files
jorenhamKai-Striega
andcommitted
TST: use strict=True in the zip of assert_decimal_close
Co-authored-by: kai-striega <kaistriega@gmail.com>
1 parent 96f9e70 commit a4de21b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy_financial/tests/test_financial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
def assert_decimal_close(actual, expected, tol=Decimal("1e-7")):
2727
# Check if both actual and expected are iterable (like arrays)
2828
if hasattr(actual, "__iter__") and hasattr(expected, "__iter__"):
29-
for a, e in zip(actual, expected, strict=False):
29+
for a, e in zip(actual, expected, strict=True):
3030
assert abs(a - e) <= tol
3131
else:
3232
# For single value comparisons

0 commit comments

Comments
 (0)