[NumPy-Tickets] [NumPy] #1767: f2py assumed shape merge - test failure

NumPy Trac numpy-tickets@scipy....
Thu Mar 24 11:56:47 CDT 2011


#1767: f2py assumed shape merge - test failure
-------------------------+--------------------------------------------------
  Reporter:  rgommers    |       Owner:  pearu   
      Type:  defect      |      Status:  reopened
  Priority:  low         |   Milestone:  1.6.0   
 Component:  numpy.f2py  |     Version:  devel   
Resolution:              |    Keywords:          
-------------------------+--------------------------------------------------
Changes (by derek):

  * priority:  normal => low
  * status:  closed => reopened
  * resolution:  fixed =>


Comment:

 The assertion errors still persists on MacOS X 10.5/ppc:

 On 24 Mar 2011, at 09:11, Pearu Peterson wrote:

 PowerPC:

 FAIL: test_kind.TestKind.test_all
 ----------------------------------------------------------------------
 Traceback (most recent call last):
  File "/sw/lib/python2.5/site-packages/nose/case.py", line 187, in runTest
    self.test(*self.arg)
  File "/sw/lib/python2.5/site-packages/numpy/f2py/tests/test_kind.py",
 line 30, in test_all
    'selectedrealkind(%s): expected %r but got %r' %  (i,
 selected_real_kind(i), selectedrealkind(i)))
  File "/sw/lib/python2.5/site-packages/numpy/testing/utils.py", line 34,
 in assert_
    raise AssertionError(msg)
 AssertionError: selectedrealkind(16): expected 10 but got 16

 Regarding this test failure, could you hack the
 numpy/f2py/tests/test_kind.py script by adding the following code

 for i in range(20):
   print '%s -> %s, %s' % (i, selected_real_kind(i), selectedrealkind(i))

 and send me the output? Also, what Fortran compiler version has been used
 to build the test modules?

 1 -> 4, 4
 2 -> 4, 4
 3 -> 4, 4
 4 -> 4, 4
 5 -> 4, 4
 6 -> 4, 4
 7 -> 8, 8
 8 -> 8, 8
 9 -> 8, 8
 10 -> 8, 8
 11 -> 8, 8
 12 -> 8, 8
 13 -> 8, 8
 14 -> 8, 8
 15 -> 8, 8
 16 -> 10, 16
 17 -> 10, 16
 18 -> 10, 16
 19 -> -1, 16

 tested with both gfortran from

 Target: powerpc-apple-darwin9.8.0
 Configured with: ../gcc-4.4.4/configure --prefix=/sw
 --prefix=/sw/lib/gcc4.4 --mandir=/sw/share/man
 --infodir=/sw/lib/gcc4.4/info --enable-
 languages=c,c++,fortran,objc,obj-c++,java --with-gmp=/sw --with-libiconv-
 prefix=/sw --with-ppl=/sw --with-cloog=/sw --with-mpc=/sw --with-system-
 zlib --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib
 --program-suffix=-fsf-4.4 --disable-libjava-multilib
 Thread model: posix
 gcc version 4.4.4 (GCC)

 and

 Target: powerpc-apple-darwin9
 Configured with: ../gcc-4.2.4/configure --prefix=/sw
 --prefix=/sw/lib/gcc4.2 --mandir=/sw/share/man --infodir=/sw/share/info
 --enable-languages=c,c++,fortran,objc,java --host=powerpc-apple-darwin9
 --with-gmp=/sw --with-libiconv-prefix=/sw --with-system-zlib
 --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --disable-
 libjava-multilib
 Thread model: posix
 gcc version 4.2.4

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


More information about the NumPy-Tickets mailing list