[NumPy-Tickets] [NumPy] #1871: f2py failures with empty strings on Python3/MacOS X ppc

NumPy Trac numpy-tickets@scipy....
Sun Jun 19 12:32:49 CDT 2011


#1871: f2py failures with empty strings on Python3/MacOS X ppc
---------------------------+------------------------------------------------
 Reporter:  derek          |       Owner:  pearu
     Type:  defect         |      Status:  new  
 Priority:  low            |   Milestone:  2.0.0
Component:  numpy.f2py     |     Version:  devel
 Keywords:  Py3k, PowerPC  |  
---------------------------+------------------------------------------------
 1.6.1rc1 fails the following tests on 10.5/ppc (gfortran 4.2-4.4):

 {{{
 >>> numpy.test('full')
 Running unit tests for numpy
 NumPy version 1.6.1rc1
 NumPy is installed in /sw/lib/python3.2/site-packages/numpy
 Python version 3.2 (r32:88445, Mar  1 2011, 18:28:16) [GCC 4.0.1 (Apple
 Inc. build 5493)]
 nose version 1.0.0
 ...
 ======================================================================
 FAIL: test_return_character.TestF77ReturnCharacter.test_all
 ----------------------------------------------------------------------
 Traceback (most recent call last):
  File "/sw/lib/python3.2/site-packages/nose/case.py", line 188, in runTest
    self.test(*self.arg)
  File "/sw/lib/python3.2/site-
 packages/numpy/f2py/tests/test_return_character.py", line 78, in test_all
    self.check_function(getattr(self.module, name))
  File "/sw/lib/python3.2/site-
 packages/numpy/f2py/tests/test_return_character.py", line 12, in
 check_function
    r = t(array('ab'));assert_( r==asbytes('a'),repr(r))
  File "/sw/lib/python3.2/site-packages/numpy/testing/utils.py", line 34,
 in assert_
    raise AssertionError(msg)
 AssertionError: b' '

 ======================================================================
 FAIL: test_return_character.TestF90ReturnCharacter.test_all
 ----------------------------------------------------------------------
 Traceback (most recent call last):
  File "/sw/lib/python3.2/site-packages/nose/case.py", line 188, in runTest
    self.test(*self.arg)
  File "/sw/lib/python3.2/site-
 packages/numpy/f2py/tests/test_return_character.py", line 136, in test_all
    self.check_function(getattr(self.module.f90_return_char, name))
  File "/sw/lib/python3.2/site-
 packages/numpy/f2py/tests/test_return_character.py", line 12, in
 check_function
    r = t(array('ab'));assert_( r==asbytes('a'),repr(r))
  File "/sw/lib/python3.2/site-packages/numpy/testing/utils.py", line 34,
 in assert_
    raise AssertionError(msg)
 AssertionError: b' '
 }}}
 Both errors are raised on the first function tested, t0 - I suggest to
 change the test to
 {{{
 r = t('ab');assert_( r==asbytes('a'),"%s('ab')=%s" % (tname,`r`))
 }}}
 for better diagnostic.

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


More information about the NumPy-Tickets mailing list