[SciPy-dev] signbit and -inf
Darren Dale
dd55 at cornell.edu
Sun Oct 16 13:33:13 CDT 2005
I tried testing the svn new_core this morning, and get three error messages,
each ultimately caused by signbit(-inf) returning False instead of True. Has
anyone else observed this?
Darren
test(level=1, verbosity=0)
======================================================================
FAIL: check_generic (scipy.base.type_check.test_type_check.test_isneginf)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/scipy/base/tests/test_type_check.py",
line 193, in check_generic
assert(vals[0] == 1)
AssertionError
======================================================================
FAIL: check_generic (scipy.base.type_check.test_type_check.test_isposinf)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/scipy/base/tests/test_type_check.py",
line 186, in check_generic
assert(vals[0] == 0)
AssertionError
======================================================================
FAIL: check_generic (scipy.base.type_check.test_type_check.test_nan_to_num)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/scipy/base/tests/test_type_check.py",
line 200, in check_generic
assert_all(vals[0] < -1e10) and assert_all(isfinite(vals[0]))
File "/usr/lib/python2.4/site-packages/scipy/base/tests/test_type_check.py",
line 12, in assert_all
assert(all(x)), x
AssertionError: False
----------------------------------------------------------------------
Ran 135 tests in 0.211s
More information about the Scipy-dev
mailing list