Hi,
> It's been there ever since Travis added the test, but it is sporadic. It's
> probably a reference counting error somewhere but no one has tracked it down
> yet. There is a ticket open on it.
As a demonstration that this is not fully predictable; here's me
copying the test file, running it once to get the error, and then
again in the same terminal and not getting the error:
mb...@fedora11:~/tmp$ cp ../sp/numpy/core/tests/test_umath.py diagnose_test.py
mb...@fedora11:~/tmp$ nosetests diagnose_test.py
....................E.................................................F
======================================================================
ERROR: diagnose_test.TestComplexFunctions.test_branch_cuts_failing
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/nose/case.py", line 182, in runTest
self.test(*self.arg)
File
"/home/mb312/usr/local/lib64/python2.6/site-packages/numpy/testing/decorators.py",
line 167, in knownfailer
raise KnownFailureTest, msg
KnownFailureTest: These branch cuts are known to fail
======================================================================
FAIL: Test bug in reduceat with structured arrays copied for speed.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/nose/case.py", line 182, in runTest
self.test(*self.arg)
File "/home/mb312/tmp/diagnose_test.py", line 730, in test_reduceat
assert_array_almost_equal(h1, h2)
File
"/home/mb312/usr/local/lib64/python2.6/site-packages/numpy/testing/utils.py",
line 537, in assert_array_almost_equal
header='Arrays are not almost equal')
File
"/home/mb312/usr/local/lib64/python2.6/site-packages/numpy/testing/utils.py",
line 395, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal
(mismatch 100.0%)
x: array([ 7.07971090e+31, 7.07971090e+31, 7.07971090e+31,
7.07971090e+31], dtype=float32)
y: array([ 700., 800., 1000., 7500.], dtype=float32)
----------------------------------------------------------------------
Ran 71 tests in 0.063s
FAILED (errors=1, failures=1)
mb...@fedora11:~/tmp$ nosetests diagnose_test.py
....................E..................................................
======================================================================
ERROR: diagnose_test.TestComplexFunctions.test_branch_cuts_failing
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/nose/case.py", line 182, in runTest
self.test(*self.arg)
File
"/home/mb312/usr/local/lib64/python2.6/site-packages/numpy/testing/decorators.py",
line 167, in knownfailer
raise KnownFailureTest, msg
KnownFailureTest: These branch cuts are known to fail
----------------------------------------------------------------------
Ran 71 tests in 0.062s
FAILED (errors=1)
....
_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion