[Scipy-tickets] [SciPy] #1229: Patch for two test failures with msvc9 build

SciPy Trac scipy-tickets@scipy....
Mon Jul 12 03:13:04 CDT 2010


#1229: Patch for two test failures with msvc9 build
----------------------+-----------------------------------------------------
 Reporter:  cjgohlke  |       Owner:  somebody
     Type:  defect    |      Status:  new     
 Priority:  normal    |   Milestone:  0.8.0   
Component:  Other     |     Version:  devel   
 Keywords:            |  
----------------------+-----------------------------------------------------
 Using numpy 1.4.1 and scipy 0.8rc1 built with msvc9, ifort, and MKL, on
 Python 2.6.5 for Windows I get two test failures due bugs in the test
 code. A patch is attached.

 1) This test fails on 64 bit because isinstance(numpy.int64(0), int) is
 False. Numpy.issubdtype(x, int) seems a better test.

 {{{
 ======================================================================
 FAIL: test_kdtree.test_vectorization.test_single_query
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "X:\Python26-x64\lib\site-packages\nose\case.py", line 186, in
 runTest
     self.test(*self.arg)
   File "X:\Python26-x64\lib\site-
 packages\scipy\spatial\tests\test_kdtree.py", line 154, in
 test_single_query
     assert isinstance(i,int)
 AssertionError
 }}}


 2) This test fails because on msvc9 the type long double is basically the
 same as double. This can be marked as knownfailure for msvc9 builds.

 {{{

 ======================================================================
 FAIL: test_complex (test_basic.TestLongDoubleFailure)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "X:\Python26-x64\lib\site-
 packages\scipy\fftpack\tests\test_basic.py", line 612, in test_complex
     np.longcomplex)
 AssertionError: Type <type 'numpy.complex128'> not supported but does not
 fail
 }}}

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1229>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list