[NumPy-Tickets] [NumPy] #1811: test fails: test_array_too_big (test_regression.TestRegression)

NumPy Trac numpy-tickets@scipy....
Wed Apr 27 16:22:20 CDT 2011


#1811: test fails: test_array_too_big (test_regression.TestRegression)
-----------------------+----------------------------------------------------
  Reporter:  sienkiew  |       Owner:  somebody
      Type:  defect    |      Status:  reopened
  Priority:  normal    |   Milestone:  1.6.0   
 Component:  Other     |     Version:  1.5.1   
Resolution:            |    Keywords:          
-----------------------+----------------------------------------------------
Changes (by rgommers):

  * status:  closed => reopened
  * resolution:  fixed =>
  * milestone:  Unscheduled => 1.6.0


Comment:

 This gives a ValueError on win32 but still a MemoryError on 64-bit OS X:
 {{{
 ======================================================================
 ERROR: Ticket #1080.
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/core/tests/test_regression.py", line 1158, in
 test_array_too_big
     assert_raises(ValueError, np.zeros, [2**30]*2, np.int8)
   File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 1008, in assert_raises
     return nose.tools.assert_raises(*args,**kwargs)
   File
 "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py",
 line 456, in assertRaises
     callableObj(*args, **kwargs)
 MemoryError
 }}}

 So better to just delete this test? Or make it dependent on32/64-bit?

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1811#comment:4>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list