[Numpy-tickets] [NumPy] #893: Numpy incompatible with python -OO

NumPy numpy-tickets@scipy....
Thu Aug 28 17:50:53 CDT 2008


#893: Numpy incompatible with python -OO
----------------------+-----------------------------------------------------
 Reporter:  cscott    |        Owner:  pierregm
     Type:  defect    |       Status:  new     
 Priority:  normal    |    Milestone:  1.2.0   
Component:  numpy.ma  |      Version:  none    
 Severity:  normal    |   Resolution:          
 Keywords:            |  
----------------------+-----------------------------------------------------
Comment (by charris):

 Ok, I fixed the segfault by changing convolve to explicitly raise a
 ValueError. However, there are a number of new errors that now show up
 running with -OO:

 ======================================================================
 FAIL: Test two arrays with different shapes are found not equal.
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib/python2.5/site-
 packages/numpy/testing/tests/test_utils.py", line 46, in
 test_array_diffshape
     self._test_not_equal(a, b)
   File "/usr/lib/python2.5/site-
 packages/numpy/testing/tests/test_utils.py", line 18, in _test_not_equal
     raise AssertionError("a and b are found equal but are not")
 AssertionError: a and b are found equal but are not

 ======================================================================
 FAIL: Test two different array of rank 1 are found not equal.
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib/python2.5/site-
 packages/numpy/testing/tests/test_utils.py", line 32, in
 test_array_rank1_noteq
     self._test_not_equal(a, b)
   File "/usr/lib/python2.5/site-
 packages/numpy/testing/tests/test_utils.py", line 18, in _test_not_equal
     raise AssertionError("a and b are found equal but are not")
 AssertionError: a and b are found equal but are not

 ======================================================================
 FAIL: Test two arrays with different shapes are found not equal.
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib/python2.5/site-
 packages/numpy/testing/tests/test_utils.py", line 46, in
 test_array_diffshape
     self._test_not_equal(a, b)
   File "/usr/lib/python2.5/site-
 packages/numpy/testing/tests/test_utils.py", line 18, in _test_not_equal
     raise AssertionError("a and b are found equal but are not")
 AssertionError: a and b are found equal but are not

 ======================================================================
 FAIL: Test two different array of rank 1 are found not equal.
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib/python2.5/site-
 packages/numpy/testing/tests/test_utils.py", line 32, in
 test_array_rank1_noteq
     self._test_not_equal(a, b)
   File "/usr/lib/python2.5/site-
 packages/numpy/testing/tests/test_utils.py", line 18, in _test_not_equal
     raise AssertionError("a and b are found equal but are not")
 AssertionError: a and b are found equal but are not

 ======================================================================
 FAIL: Test rank 1 array for all dtypes.
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib/python2.5/site-
 packages/numpy/testing/tests/test_utils.py", line 65, in
 test_generic_rank1
     foo(t)
   File "/usr/lib/python2.5/site-
 packages/numpy/testing/tests/test_utils.py", line 61, in foo
     self._test_not_equal(c, b)
   File "/usr/lib/python2.5/site-
 packages/numpy/testing/tests/test_utils.py", line 18, in _test_not_equal
     raise AssertionError("a and b are found equal but are not")
 AssertionError: a and b are found equal but are not

 ======================================================================
 FAIL: Test rank 3 array for all dtypes.
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib/python2.5/site-
 packages/numpy/testing/tests/test_utils.py", line 84, in
 test_generic_rank3
     foo(t)
   File "/usr/lib/python2.5/site-
 packages/numpy/testing/tests/test_utils.py", line 80, in foo
     self._test_not_equal(c, b)
   File "/usr/lib/python2.5/site-
 packages/numpy/testing/tests/test_utils.py", line 18, in _test_not_equal
     raise AssertionError("a and b are found equal but are not")
 AssertionError: a and b are found equal but are not

 ======================================================================
 FAIL: Test arrays with nan values in them.
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib/python2.5/site-
 packages/numpy/testing/tests/test_utils.py", line 98, in test_nan_array
     self._test_not_equal(c, b)
   File "/usr/lib/python2.5/site-
 packages/numpy/testing/tests/test_utils.py", line 18, in _test_not_equal
     raise AssertionError("a and b are found equal but are not")
 AssertionError: a and b are found equal but are not

 ======================================================================
 FAIL: Test record arrays.
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib/python2.5/site-
 packages/numpy/testing/tests/test_utils.py", line 124, in test_recarrays
     self._test_not_equal(c, b)
   File "/usr/lib/python2.5/site-
 packages/numpy/testing/tests/test_utils.py", line 18, in _test_not_equal
     raise AssertionError("a and b are found equal but are not")
 AssertionError: a and b are found equal but are not

 ======================================================================
 FAIL: Test two arrays with different shapes are found not equal.
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib/python2.5/site-
 packages/numpy/testing/tests/test_utils.py", line 109, in
 test_string_arrays
     self._test_not_equal(c, b)
   File "/usr/lib/python2.5/site-
 packages/numpy/testing/tests/test_utils.py", line 18, in _test_not_equal
     raise AssertionError("a and b are found equal but are not")
 AssertionError: a and b are found equal but are not

 ======================================================================
 SKIP: test_umath.TestComplexFunctions.test_branch_cuts_failing
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib/python2.5/site-packages/nose/case.py", line 203, in
 runTest
     self.test(*self.arg)
   File "/usr/lib/python2.5/site-packages/numpy/testing/decorators.py",
 line 93, in skipper
     raise nose.SkipTest, 'This test is known to fail'
 SkipTest: This test is known to fail

 ----------------------------------------------------------------------
 Ran 1719 tests in 6.241s

 FAILED (failures=9)

-- 
Ticket URL: <http://scipy.org/scipy/numpy/ticket/893#comment:14>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list