[NumPy-Tickets] [NumPy] #2071: Python 2.4 compatibility broken

NumPy Trac numpy-tickets@scipy....
Sat Mar 3 11:44:41 CST 2012


#2071: Python 2.4 compatibility broken
-----------------------+----------------------------------------------------
 Reporter:  rgommers   |       Owner:  mwiebe
     Type:  defect     |      Status:  new   
 Priority:  highest    |   Milestone:  1.7.0 
Component:  Other      |     Version:  1.6.1 
 Keywords:  python2.4  |  
-----------------------+----------------------------------------------------
 {{{itertools.combinations}}} doesn't even exist in Python 2.5, so that
 should certainly be fixed.

 {{{
 ======================================================================
 ERROR:
 test_dtype.TestDtypeAttributeDeletion.test_dtype_non_writable_attributes_deletion
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4
 /site-packages/nose-1.1.2-py2.4.egg/nose/case.py", line 197, in runTest
     self.test(*self.arg)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4
 /site-packages/numpy/core/tests/test_dtype.py", line 412, in
 test_dtype_non_writable_attributes_deletion
     assert_raises(AttributeError, delattr, dt, s)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4
 /site-packages/numpy/testing/utils.py", line 1053, in assert_raises
     return nose.tools.assert_raises(*args,**kwargs)
   File
 "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/unittest.py",
 line 320, in failUnlessRaises
     callableObj(*args, **kwargs)
 TypeError: attribute 'subdtype' of 'numpy.dtype' objects is not writable

 ======================================================================
 ERROR: test_maskna.test_array_maskna_view_dtype
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4
 /site-packages/nose-1.1.2-py2.4.egg/nose/case.py", line 197, in runTest
     self.test(*self.arg)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4
 /site-packages/numpy/core/tests/test_maskna.py", line 467, in
 test_array_maskna_view_dtype
     for x in itertools.combinations(tcs, 2):
 AttributeError: 'module' object has no attribute 'combinations'

 ======================================================================
 ERROR: test_nditer.test_iter_writable_attribute_deletion
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4
 /site-packages/nose-1.1.2-py2.4.egg/nose/case.py", line 197, in runTest
     self.test(*self.arg)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4
 /site-packages/numpy/core/tests/test_nditer.py", line 2564, in
 test_iter_writable_attribute_deletion
     assert_raises(AttributeError, delattr, it, s)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4
 /site-packages/numpy/testing/utils.py", line 1053, in assert_raises
     return nose.tools.assert_raises(*args,**kwargs)
   File
 "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/unittest.py",
 line 320, in failUnlessRaises
     callableObj(*args, **kwargs)
 TypeError: attribute 'value' of 'numpy.nditer' objects is not writable

 ----------------------------------------------------------------------
 }}}

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/2071>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list