Commit 9b9dd7ac authored by Dmitry Kalinkin's avatar Dmitry Kalinkin

Revert "test: assert that isinf returns -1 for negative infinity"

This reverts commit 24cf7c96.

According to the numpy documentation npy_isinf merely provides an
equivalent of C99 isinf, which in turn is only required to return a
non-zero value for a given infinite argument.

The original commit breaks the test when compiled with clang & libc++.
parent 15a40e21
......@@ -37,8 +37,7 @@ def test_fp_classif():
assert not npmath.isnan(d_zero)
assert not npmath.isnan(f_zero)
assert npmath.isinf(npmath.INFINITY) == 1
assert npmath.isinf(-npmath.INFINITY) == -1
assert npmath.isinf(npmath.INFINITY)
assert npmath.isnan(npmath.NAN)
assert npmath.signbit(npmath.copysign(1., -1.))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment