test failures with python 2.4

Hi, Here is a list of test failures with python 2.4 (there are also failures with 2.7, see below). Interpolate: test_interpnd.TestCloughTocher2DInterpolator.test_dense ... Exception exceptions.TypeError: <exceptions.TypeError instance at 0x7fd4d67fecf8> in 'scipy.spatial.qhull._get_delaunay_info' ignored Segmentation fault Spatial: test_qhull.TestUtilities.test_convex_hull ... ERROR test_qhull.TestUtilities.test_degenerate_barycentric_transforms ... ERROR test_qhull.TestUtilities.test_find_simplex ... Exception exceptions.TypeError: <exceptions.TypeError instance at 0x7f9e857963b0> in 'scipy.spatial.qhull._get_delaunay_info' ignored FAIL test_qhull.TestUtilities.test_more_barycentric_transforms ... ERROR test_qhull.TestUtilities.test_plane_distance ... ok ====================================================================== ERROR: test_qhull.TestUtilities.test_convex_hull ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/denis/.local/lib/python2.4/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/denis/.local/lib/python2.4/site-packages/scipy/spatial/tests/test_qhull.py", line 75, in test_convex_hull assert_equal(tri.convex_hull, [[1, 2], [3, 2], [1, 0], [3, 0]]) File "qhull.pyx", line 1109, in scipy.spatial.qhull.Delaunay.convex_hull (scipy/spatial/qhull.c:8406) ValueError: cannot resize an array references or is referenced by another array in this way. Use the resize function ====================================================================== ERROR: test_qhull.TestUtilities.test_degenerate_barycentric_transforms ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/denis/.local/lib/python2.4/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/denis/.local/lib/python2.4/site-packages/scipy/spatial/tests/test_qhull.py", line 133, in test_degenerate_barycentric_transforms bad_count = np.isnan(tri.transform[:,0,0]).sum() File "qhull.pyx", line 1028, in scipy.spatial.qhull.Delaunay.transform (scipy/spatial/qhull.c:7449) File "qhull.pyx", line 398, in scipy.spatial.qhull._get_barycentric_transforms (scipy/spatial/qhull.c:4300) File "/home/denis/.local/lib/python2.4/site-packages/numpy/core/numeric.py", line 235, in asarray return array(a, dtype, copy=False, order=order) File "stringsource", line 366, in View.MemoryView.memoryview.__getitem__ (scipy/spatial/qhull.c:14704) File "stringsource", line 650, in View.MemoryView._unellipsify (scipy/spatial/qhull.c:17965) TypeError: Cannot index with type '<type 'int'>' ====================================================================== ERROR: test_qhull.TestUtilities.test_more_barycentric_transforms ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/denis/.local/lib/python2.4/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/denis/.local/lib/python2.4/site-packages/scipy/spatial/tests/test_qhull.py", line 157, in test_more_barycentric_transforms unit_cube=True) File "/home/denis/.local/lib/python2.4/site-packages/scipy/spatial/tests/test_qhull.py", line 96, in _check_barycentric_transforms c = barycentric_transform(tri.transform, centroids) File "qhull.pyx", line 1028, in scipy.spatial.qhull.Delaunay.transform (scipy/spatial/qhull.c:7449) File "qhull.pyx", line 398, in scipy.spatial.qhull._get_barycentric_transforms (scipy/spatial/qhull.c:4300) File "/home/denis/.local/lib/python2.4/site-packages/numpy/core/numeric.py", line 235, in asarray return array(a, dtype, copy=False, order=order) File "stringsource", line 366, in View.MemoryView.memoryview.__getitem__ (scipy/spatial/qhull.c:14704) File "stringsource", line 650, in View.MemoryView._unellipsify (scipy/spatial/qhull.c:17965) TypeError: Cannot index with type '<type 'int'>' ====================================================================== FAIL: test_qhull.TestUtilities.test_find_simplex ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/denis/.local/lib/python2.4/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/denis/.local/lib/python2.4/site-packages/scipy/spatial/tests/test_qhull.py", line 33, in test_find_simplex assert_equal(i, p[2], err_msg='%r' % (p,)) File "/home/denis/.local/lib/python2.4/site-packages/numpy/testing/utils.py", line 256, in assert_equal return assert_array_equal(actual, desired, err_msg, verbose) File "/home/denis/.local/lib/python2.4/site-packages/numpy/testing/utils.py", line 707, in assert_array_equal verbose=verbose, header='Arrays are not equal') File "/home/denis/.local/lib/python2.4/site-packages/numpy/testing/utils.py", line 636, in assert_array_compare raise AssertionError(msg) AssertionError: Arrays are not equal (0.25, 0.25, 1) (mismatch 100.0%) x: array(-1, dtype=int32) y: array(1) ---------------------------------------------------------------------- Ran 291 tests in 13.335s FAILED (errors=3, failures=1) Weave: FAIL: test_set_complex (test_scxx_object.TestObjectSetItemOpKey) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/denis/.local/lib/python2.4/site-packages/scipy/weave/tests/test_scxx_object.py", line 943, in test_set_complex assert_equal(sys.getrefcount(key),4) # should be 3 File "/home/denis/.local/lib/python2.4/site-packages/numpy/testing/utils.py", line 313, in assert_equal raise AssertionError(msg) AssertionError: Items are not equal: ACTUAL: 3 DESIRED: 4 Failures not specific to python 2.4. Sparse: ====================================================================== ERROR: adding a dense matrix to a sparse matrix ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/tests/test_base.py", line 527, in test_add_dense sum1 = self.dat + self.datsp File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/dok.py", line 133, in __getitem__ raise TypeError('index must be a pair of integers or slices') TypeError: index must be a pair of integers or slices ====================================================================== ERROR: test_matmat_sparse (test_base.TestDOK) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/tests/test_base.py", line 425, in test_matmat_sparse assert_array_almost_equal( a2*bsp, a*b) File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/dok.py", line 133, in __getitem__ raise TypeError('index must be a pair of integers or slices') TypeError: index must be a pair of integers or slices ====================================================================== ERROR: test_radd (test_base.TestDOK) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/tests/test_base.py", line 279, in test_radd c = a + b File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/dok.py", line 133, in __getitem__ raise TypeError('index must be a pair of integers or slices') TypeError: index must be a pair of integers or slices ====================================================================== ERROR: test_rsub (test_base.TestDOK) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/tests/test_base.py", line 290, in test_rsub assert_array_equal((self.dat - self.datsp),[[0,0,0,0],[0,0,0,0],[0,0,0,0]]) File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/dok.py", line 133, in __getitem__ raise TypeError('index must be a pair of integers or slices') TypeError: index must be a pair of integers or slices ====================================================================== ERROR: subtracting a dense matrix to/from a sparse matrix ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/tests/test_base.py", line 535, in test_sub_dense sum1 = 3*self.dat - self.datsp File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/dok.py", line 133, in __getitem__ raise TypeError('index must be a pair of integers or slices') TypeError: index must be a pair of integers or slices ---------------------------------------------------------------------- Ran 1210 tests in 12.543s FAILED (KNOWNFAIL=4, errors=5) Special: ................../home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py:1645: RuntimeWarning: divide by zero encountered in iv c1 = special.iv(v, x) /home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py:1645: RuntimeWarning: overflow encountered in iv c1 = special.iv(v, x) /home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py:1646: RuntimeWarning: invalid value encountered in iv c2 = special.iv(v, x+0j) /home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py:1652: RuntimeWarning: divide by zero encountered in divide dc = abs(c1/c2 - 1) /home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py:1652: RuntimeWarning: invalid value encountered in divide dc = abs(c1/c2 - 1) /home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py:1659: RuntimeWarning: overflow encountered in iv assert_(dc[k] < 1e-9, (v[k], x[k], special.iv(v[k], x[k]), special.iv(v[k], x[k]+0j))) F...................................................K.K.............................................................................................................................................................................................................................................................................................................................................................................................K........K.................................................. ====================================================================== FAIL: test_iv_cephes_vs_amos_mass_test (test_basic.TestBessel) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py", line 1659, in test_iv_cephes_vs_amos_mass_test assert_(dc[k] < 1e-9, (v[k], x[k], special.iv(v[k], x[k]), special.iv(v[k], x[k]+0j))) File "/usr/lib/pymodules/python2.7/numpy/testing/utils.py", line 34, in assert_ raise AssertionError(msg) AssertionError: (189.2947429454936, 3.0238805556481037, 4.089165443940765e-317, 0j) ---------------------------------------------------------------------- Ran 514 tests in 6.908s FAILED (KNOWNFAIL=4, failures=1) Building/testing environment for python 2.4 (Debian wheezy/sid x86_64): NumPy version 1.6.2 NumPy is installed in /home/denis/.local/lib/python2.4/site-packages/numpy SciPy version 0.11.0.dev-127acfd SciPy is installed in /home/denis/.local/lib/python2.4/site-packages/scipy Python version 2.4.6 (#2, Sep 25 2009, 22:22:06) [GCC 4.3.4] nose version 1.1.2 -- Denis

On Thu, May 31, 2012 at 5:50 PM, Denis Laxalde <denis@laxalde.org> wrote:
Hi,
Here is a list of test failures with python 2.4 (there are also failures with 2.7, see below).
Thanks. I see those too. Should all be fixed before the first beta ideally. Only the weave test we don't have to care about anymore.
Ralf
Interpolate:
test_interpnd.TestCloughTocher2DInterpolator.test_dense ... Exception exceptions.TypeError: <exceptions.TypeError instance at 0x7fd4d67fecf8> in 'scipy.spatial.qhull._get_delaunay_info' ignored Segmentation fault
Spatial:
test_qhull.TestUtilities.test_convex_hull ... ERROR test_qhull.TestUtilities.test_degenerate_barycentric_transforms ... ERROR test_qhull.TestUtilities.test_find_simplex ... Exception exceptions.TypeError: <exceptions.TypeError instance at 0x7f9e857963b0> in 'scipy.spatial.qhull._get_delaunay_info' ignored FAIL test_qhull.TestUtilities.test_more_barycentric_transforms ... ERROR test_qhull.TestUtilities.test_plane_distance ... ok
====================================================================== ERROR: test_qhull.TestUtilities.test_convex_hull
---------------------------------------------------------------------- Traceback (most recent call last): File "/home/denis/.local/lib/python2.4/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/denis/.local/lib/python2.4/site-packages/scipy/spatial/tests/test_qhull.py", line 75, in test_convex_hull assert_equal(tri.convex_hull, [[1, 2], [3, 2], [1, 0], [3, 0]]) File "qhull.pyx", line 1109, in scipy.spatial.qhull.Delaunay.convex_hull (scipy/spatial/qhull.c:8406) ValueError: cannot resize an array references or is referenced by another array in this way. Use the resize function
====================================================================== ERROR: test_qhull.TestUtilities.test_degenerate_barycentric_transforms
---------------------------------------------------------------------- Traceback (most recent call last): File "/home/denis/.local/lib/python2.4/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/denis/.local/lib/python2.4/site-packages/scipy/spatial/tests/test_qhull.py", line 133, in test_degenerate_barycentric_transforms bad_count = np.isnan(tri.transform[:,0,0]).sum() File "qhull.pyx", line 1028, in scipy.spatial.qhull.Delaunay.transform (scipy/spatial/qhull.c:7449) File "qhull.pyx", line 398, in scipy.spatial.qhull._get_barycentric_transforms (scipy/spatial/qhull.c:4300) File "/home/denis/.local/lib/python2.4/site-packages/numpy/core/numeric.py", line 235, in asarray return array(a, dtype, copy=False, order=order) File "stringsource", line 366, in View.MemoryView.memoryview.__getitem__ (scipy/spatial/qhull.c:14704) File "stringsource", line 650, in View.MemoryView._unellipsify (scipy/spatial/qhull.c:17965) TypeError: Cannot index with type '<type 'int'>'
====================================================================== ERROR: test_qhull.TestUtilities.test_more_barycentric_transforms
---------------------------------------------------------------------- Traceback (most recent call last): File "/home/denis/.local/lib/python2.4/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/denis/.local/lib/python2.4/site-packages/scipy/spatial/tests/test_qhull.py", line 157, in test_more_barycentric_transforms unit_cube=True) File "/home/denis/.local/lib/python2.4/site-packages/scipy/spatial/tests/test_qhull.py", line 96, in _check_barycentric_transforms c = barycentric_transform(tri.transform, centroids) File "qhull.pyx", line 1028, in scipy.spatial.qhull.Delaunay.transform (scipy/spatial/qhull.c:7449) File "qhull.pyx", line 398, in scipy.spatial.qhull._get_barycentric_transforms (scipy/spatial/qhull.c:4300) File "/home/denis/.local/lib/python2.4/site-packages/numpy/core/numeric.py", line 235, in asarray return array(a, dtype, copy=False, order=order) File "stringsource", line 366, in View.MemoryView.memoryview.__getitem__ (scipy/spatial/qhull.c:14704) File "stringsource", line 650, in View.MemoryView._unellipsify (scipy/spatial/qhull.c:17965) TypeError: Cannot index with type '<type 'int'>'
====================================================================== FAIL: test_qhull.TestUtilities.test_find_simplex
---------------------------------------------------------------------- Traceback (most recent call last): File "/home/denis/.local/lib/python2.4/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/denis/.local/lib/python2.4/site-packages/scipy/spatial/tests/test_qhull.py", line 33, in test_find_simplex assert_equal(i, p[2], err_msg='%r' % (p,)) File "/home/denis/.local/lib/python2.4/site-packages/numpy/testing/utils.py", line 256, in assert_equal return assert_array_equal(actual, desired, err_msg, verbose) File "/home/denis/.local/lib/python2.4/site-packages/numpy/testing/utils.py", line 707, in assert_array_equal verbose=verbose, header='Arrays are not equal') File "/home/denis/.local/lib/python2.4/site-packages/numpy/testing/utils.py", line 636, in assert_array_compare raise AssertionError(msg) AssertionError: Arrays are not equal (0.25, 0.25, 1) (mismatch 100.0%) x: array(-1, dtype=int32) y: array(1)
---------------------------------------------------------------------- Ran 291 tests in 13.335s
FAILED (errors=3, failures=1)
Weave:
FAIL: test_set_complex (test_scxx_object.TestObjectSetItemOpKey)
---------------------------------------------------------------------- Traceback (most recent call last): File "/home/denis/.local/lib/python2.4/site-packages/scipy/weave/tests/test_scxx_object.py", line 943, in test_set_complex assert_equal(sys.getrefcount(key),4) # should be 3 File "/home/denis/.local/lib/python2.4/site-packages/numpy/testing/utils.py", line 313, in assert_equal raise AssertionError(msg) AssertionError: Items are not equal: ACTUAL: 3 DESIRED: 4
Failures not specific to python 2.4.
Sparse:
====================================================================== ERROR: adding a dense matrix to a sparse matrix
---------------------------------------------------------------------- Traceback (most recent call last): File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/tests/test_base.py", line 527, in test_add_dense sum1 = self.dat + self.datsp File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/dok.py", line 133, in __getitem__ raise TypeError('index must be a pair of integers or slices') TypeError: index must be a pair of integers or slices
====================================================================== ERROR: test_matmat_sparse (test_base.TestDOK)
---------------------------------------------------------------------- Traceback (most recent call last): File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/tests/test_base.py", line 425, in test_matmat_sparse assert_array_almost_equal( a2*bsp, a*b) File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/dok.py", line 133, in __getitem__ raise TypeError('index must be a pair of integers or slices') TypeError: index must be a pair of integers or slices
====================================================================== ERROR: test_radd (test_base.TestDOK)
---------------------------------------------------------------------- Traceback (most recent call last): File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/tests/test_base.py", line 279, in test_radd c = a + b File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/dok.py", line 133, in __getitem__ raise TypeError('index must be a pair of integers or slices') TypeError: index must be a pair of integers or slices
====================================================================== ERROR: test_rsub (test_base.TestDOK)
---------------------------------------------------------------------- Traceback (most recent call last): File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/tests/test_base.py", line 290, in test_rsub assert_array_equal((self.dat - self.datsp),[[0,0,0,0],[0,0,0,0],[0,0,0,0]]) File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/dok.py", line 133, in __getitem__ raise TypeError('index must be a pair of integers or slices') TypeError: index must be a pair of integers or slices
====================================================================== ERROR: subtracting a dense matrix to/from a sparse matrix
---------------------------------------------------------------------- Traceback (most recent call last): File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/tests/test_base.py", line 535, in test_sub_dense sum1 = 3*self.dat - self.datsp File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/dok.py", line 133, in __getitem__ raise TypeError('index must be a pair of integers or slices') TypeError: index must be a pair of integers or slices
---------------------------------------------------------------------- Ran 1210 tests in 12.543s
FAILED (KNOWNFAIL=4, errors=5)
Special:
................../home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py:1645: RuntimeWarning: divide by zero encountered in iv c1 = special.iv(v, x)
/home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py:1645: RuntimeWarning: overflow encountered in iv c1 = special.iv(v, x)
/home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py:1646: RuntimeWarning: invalid value encountered in iv c2 = special.iv(v, x+0j)
/home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py:1652: RuntimeWarning: divide by zero encountered in divide dc = abs(c1/c2 - 1)
/home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py:1652: RuntimeWarning: invalid value encountered in divide dc = abs(c1/c2 - 1)
/home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py:1659: RuntimeWarning: overflow encountered in iv assert_(dc[k] < 1e-9, (v[k], x[k], special.iv(v[k], x[k]), special.iv(v[k], x[k]+0j)))
F...................................................K.K.............................................................................................................................................................................................................................................................................................................................................................................................K........K..................................................
====================================================================== FAIL: test_iv_cephes_vs_amos_mass_test (test_basic.TestBessel)
---------------------------------------------------------------------- Traceback (most recent call last): File "/home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py", line 1659, in test_iv_cephes_vs_amos_mass_test assert_(dc[k] < 1e-9, (v[k], x[k], special.iv(v[k], x[k]), special.iv(v[k], x[k]+0j))) File "/usr/lib/pymodules/python2.7/numpy/testing/utils.py", line 34, in assert_ raise AssertionError(msg) AssertionError: (189.2947429454936, 3.0238805556481037, 4.089165443940765e-317, 0j)
---------------------------------------------------------------------- Ran 514 tests in 6.908s
FAILED (KNOWNFAIL=4, failures=1)
Building/testing environment for python 2.4 (Debian wheezy/sid x86_64):
NumPy version 1.6.2 NumPy is installed in /home/denis/.local/lib/python2.4/site-packages/numpy SciPy version 0.11.0.dev-127acfd SciPy is installed in /home/denis/.local/lib/python2.4/site-packages/scipy Python version 2.4.6 (#2, Sep 25 2009, 22:22:06) [GCC 4.3.4] nose version 1.1.2
-- Denis
_______________________________________________ SciPy-Dev mailing list SciPy-Dev@scipy.org http://mail.scipy.org/mailman/listinfo/scipy-dev

On Thu, May 31, 2012 at 5:50 PM, Denis Laxalde <denis@laxalde.org> wrote:
Sparse:
====================================================================== ERROR: adding a dense matrix to a sparse matrix
---------------------------------------------------------------------- Traceback (most recent call last): File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/tests/test_base.py", line 527, in test_add_dense sum1 = self.dat + self.datsp File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/dok.py", line 133, in __getitem__ raise TypeError('index must be a pair of integers or slices') TypeError: index must be a pair of integers or slices
====================================================================== ERROR: test_matmat_sparse (test_base.TestDOK)
---------------------------------------------------------------------- Traceback (most recent call last): File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/tests/test_base.py", line 425, in test_matmat_sparse assert_array_almost_equal( a2*bsp, a*b) File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/dok.py", line 133, in __getitem__ raise TypeError('index must be a pair of integers or slices') TypeError: index must be a pair of integers or slices
====================================================================== ERROR: test_radd (test_base.TestDOK)
---------------------------------------------------------------------- Traceback (most recent call last): File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/tests/test_base.py", line 279, in test_radd c = a + b File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/dok.py", line 133, in __getitem__ raise TypeError('index must be a pair of integers or slices') TypeError: index must be a pair of integers or slices
====================================================================== ERROR: test_rsub (test_base.TestDOK)
---------------------------------------------------------------------- Traceback (most recent call last): File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/tests/test_base.py", line 290, in test_rsub assert_array_equal((self.dat - self.datsp),[[0,0,0,0],[0,0,0,0],[0,0,0,0]]) File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/dok.py", line 133, in __getitem__ raise TypeError('index must be a pair of integers or slices') TypeError: index must be a pair of integers or slices
====================================================================== ERROR: subtracting a dense matrix to/from a sparse matrix
---------------------------------------------------------------------- Traceback (most recent call last): File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/tests/test_base.py", line 535, in test_sub_dense sum1 = 3*self.dat - self.datsp File "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/dok.py", line 133, in __getitem__ raise TypeError('index must be a pair of integers or slices') TypeError: index must be a pair of integers or slices
---------------------------------------------------------------------- Ran 1210 tests in 12.543s
FAILED (KNOWNFAIL=4, errors=5)
These are silences by https://github.com/scipy/scipy/pull/237. See http://projects.scipy.org/scipy/ticket/1559 for details.
Special:
................../home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py:1645: RuntimeWarning: divide by zero encountered in iv c1 = special.iv(v, x)
/home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py:1645: RuntimeWarning: overflow encountered in iv c1 = special.iv(v, x)
/home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py:1646: RuntimeWarning: invalid value encountered in iv c2 = special.iv(v, x+0j)
/home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py:1652: RuntimeWarning: divide by zero encountered in divide dc = abs(c1/c2 - 1)
/home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py:1652: RuntimeWarning: invalid value encountered in divide dc = abs(c1/c2 - 1)
/home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py:1659: RuntimeWarning: overflow encountered in iv assert_(dc[k] < 1e-9, (v[k], x[k], special.iv(v[k], x[k]), special.iv(v[k], x[k]+0j)))
F...................................................K.K.............................................................................................................................................................................................................................................................................................................................................................................................K........K..................................................
====================================================================== FAIL: test_iv_cephes_vs_amos_mass_test (test_basic.TestBessel)
---------------------------------------------------------------------- Traceback (most recent call last): File "/home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py", line 1659, in test_iv_cephes_vs_amos_mass_test assert_(dc[k] < 1e-9, (v[k], x[k], special.iv(v[k], x[k]), special.iv(v[k], x[k]+0j))) File "/usr/lib/pymodules/python2.7/numpy/testing/utils.py", line 34, in assert_ raise AssertionError(msg) AssertionError: (189.2947429454936, 3.0238805556481037, 4.089165443940765e-317, 0j)
This one I can't reproduce.
Ralf

Le lundi 04 juin 2012 à 20:56 +0200, Ralf Gommers a écrit :
Sparse:
These are silences by https://github.com/scipy/scipy/pull/237. See http://projects.scipy.org/scipy/ticket/1559 for details.
Looks reasonable.
Special: [...] ====================================================================== FAIL: test_iv_cephes_vs_amos_mass_test (test_basic.TestBessel)
---------------------------------------------------------------------- Traceback (most recent call last): File "/home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py", line 1659, in test_iv_cephes_vs_amos_mass_test assert_(dc[k] < 1e-9, (v[k], x[k], special.iv(v[k], x[k]), special.iv(v[k], x[k]+0j))) File "/usr/lib/pymodules/python2.7/numpy/testing/utils.py", line 34, in assert_ raise AssertionError(msg) AssertionError: (189.2947429454936, 3.0238805556481037, 4.089165443940765e-317, 0j)
This one I can't reproduce.
Did you run the test with 'full'? This particular test is marked as slow.

On Mon, Jun 4, 2012 at 9:05 PM, Denis Laxalde <denis@laxalde.org> wrote:
Le lundi 04 juin 2012 à 20:56 +0200, Ralf Gommers a écrit :
Sparse:
These are silences by https://github.com/scipy/scipy/pull/237. See http://projects.scipy.org/scipy/ticket/1559 for details.
Looks reasonable.
Special: [...] ====================================================================== FAIL: test_iv_cephes_vs_amos_mass_test (test_basic.TestBessel)
---------------------------------------------------------------------- Traceback (most recent call last): File
line 1659, in test_iv_cephes_vs_amos_mass_test assert_(dc[k] < 1e-9, (v[k], x[k], special.iv(v[k], x[k]), special.iv(v[k], x[k]+0j))) File "/usr/lib/pymodules/python2.7/numpy/testing/utils.py",
"/home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py", line
34, in assert_ raise AssertionError(msg) AssertionError: (189.2947429454936, 3.0238805556481037, 4.089165443940765e-317, 0j)
This one I can't reproduce.
Did you run the test with 'full'? This particular test is marked as slow.
Yes, I know. Doesn't reproduce. It did sometime in the past though: http://projects.scipy.org/scipy/ticket/1453 Ralf
participants (2)
-
Denis Laxalde
-
Ralf Gommers