Skip to content

Commit 2e20666

Browse files
committed
TST: use NumPy's assert_ instead of plain assert in nper tests
1 parent 0ee9c0d commit 2e20666

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpy_financial/tests/test_financial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ def test_gh_18(self):
422422
def test_infinite_payments(self):
423423
with numpy.errstate(divide='raise'):
424424
result = npf.nper(0, -0.0, 1000)
425-
assert result == numpy.inf
425+
assert_(result == numpy.inf)
426426

427427
def test_no_interest(self):
428-
assert npf.nper(0, -100, 1000) == 10
428+
assert_(npf.nper(0, -100, 1000) == 10)

0 commit comments

Comments
 (0)