[Numpy-svn] r6511 - trunk/numpy/core/tests

numpy-svn@scip... numpy-svn@scip...
Fri Feb 27 05:57:10 CST 2009


Author: cdavid
Date: 2009-02-27 05:57:06 -0600 (Fri, 27 Feb 2009)
New Revision: 6511

Modified:
   trunk/numpy/core/tests/test_unicode.py
Log:
All unicode test now pass with mingw64.

Modified: trunk/numpy/core/tests/test_unicode.py
===================================================================
--- trunk/numpy/core/tests/test_unicode.py	2009-02-27 11:54:31 UTC (rev 6510)
+++ trunk/numpy/core/tests/test_unicode.py	2009-02-27 11:57:06 UTC (rev 6511)
@@ -3,10 +3,6 @@
 from numpy.testing import *
 from numpy.core import *
 
-def iswin64():
-    import platform
-    return platform.architecture()[0] == "64bit" and sys.platform == "win32"
-
 # Guess the UCS length for this python interpreter
 if len(buffer(u'u')) == 4:
     ucs4 = True
@@ -42,20 +38,17 @@
         else:
             self.assert_(len(buffer(ua_scalar)) == 0)
 
-    @dec.knownfailureif(iswin64(), "Crash on win64")
     def test_zeros0D(self):
         """Check creation of 0-dimensional objects"""
         ua = zeros((), dtype='U%s' % self.ulen)
         self.content_check(ua, ua[()], 4*self.ulen)
 
-    @dec.knownfailureif(iswin64(), "Crash on win64")
     def test_zerosSD(self):
         """Check creation of single-dimensional objects"""
         ua = zeros((2,), dtype='U%s' % self.ulen)
         self.content_check(ua, ua[0], 4*self.ulen*2)
         self.content_check(ua, ua[1], 4*self.ulen*2)
 
-    @dec.knownfailureif(iswin64(), "Crash on win64")
     def test_zerosMD(self):
         """Check creation of multi-dimensional objects"""
         ua = zeros((2,3,4), dtype='U%s' % self.ulen)
@@ -105,20 +98,17 @@
                 # regular 2-byte word
                 self.assert_(len(buffer(ua_scalar)) == 2*self.ulen)
 
-    @dec.knownfailureif(iswin64(), "Crash on win64")
     def test_values0D(self):
         """Check creation of 0-dimensional objects with values"""
         ua = array(self.ucs_value*self.ulen, dtype='U%s' % self.ulen)
         self.content_check(ua, ua[()], 4*self.ulen)
 
-    @dec.knownfailureif(iswin64(), "Crash on win64")
     def test_valuesSD(self):
         """Check creation of single-dimensional objects with values"""
         ua = array([self.ucs_value*self.ulen]*2, dtype='U%s' % self.ulen)
         self.content_check(ua, ua[0], 4*self.ulen*2)
         self.content_check(ua, ua[1], 4*self.ulen*2)
 
-    @dec.knownfailureif(iswin64(), "Crash on win64")
     def test_valuesMD(self):
         """Check creation of multi-dimensional objects with values"""
         ua = array([[[self.ucs_value*self.ulen]*2]*3]*4, dtype='U%s' % self.ulen)



More information about the Numpy-svn mailing list