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

numpy-svn@scip... numpy-svn@scip...
Wed Feb 25 13:05:09 CST 2009


Author: cdavid
Date: 2009-02-25 13:04:59 -0600 (Wed, 25 Feb 2009)
New Revision: 6475

Modified:
   trunk/numpy/core/tests/test_scalarmath.py
   trunk/numpy/core/tests/test_unicode.py
Log:
Tag more mingw-w64 failures as such.

Modified: trunk/numpy/core/tests/test_scalarmath.py
===================================================================
--- trunk/numpy/core/tests/test_scalarmath.py	2009-02-25 18:56:15 UTC (rev 6474)
+++ trunk/numpy/core/tests/test_scalarmath.py	2009-02-25 19:04:59 UTC (rev 6475)
@@ -1,3 +1,4 @@
+import sys
 from numpy.testing import *
 import numpy as np
 
@@ -6,6 +7,10 @@
          np.single, np.double, np.longdouble, np.csingle,
          np.cdouble, np.clongdouble]
 
+def iswin64():
+    import platform
+    return platform.architecture()[0] == "64bit" and sys.platform == "win32"
+
 # This compares scalarmath against ufuncs.
 
 class TestTypes(TestCase):
@@ -42,6 +47,7 @@
             b = a ** 4
             assert b == 81, "error with %r: got %r" % (t,b)
 
+    @dec.knownfailureif(iswin64(), "Crash on win64")
     def test_large_types(self):
         for t in [np.int32, np.int64, np.float32, np.float64, np.longdouble]:
             a = t(51)

Modified: trunk/numpy/core/tests/test_unicode.py
===================================================================
--- trunk/numpy/core/tests/test_unicode.py	2009-02-25 18:56:15 UTC (rev 6474)
+++ trunk/numpy/core/tests/test_unicode.py	2009-02-25 19:04:59 UTC (rev 6475)
@@ -1,6 +1,12 @@
+import sys
+
 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
@@ -36,17 +42,20 @@
         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)
@@ -96,17 +105,20 @@
                 # 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)
@@ -181,12 +193,14 @@
                 # regular 2-byte word
                 self.assert_(len(buffer(ua_scalar)) == 2*self.ulen)
 
+    @dec.knownfailureif(iswin64(), "Crash on win64")
     def test_values0D(self):
         """Check assignment of 0-dimensional objects with values"""
         ua = zeros((), dtype='U%s' % self.ulen)
         ua[()] = self.ucs_value*self.ulen
         self.content_check(ua, ua[()], 4*self.ulen)
 
+    @dec.knownfailureif(iswin64(), "Crash on win64")
     def test_valuesSD(self):
         """Check assignment of single-dimensional objects with values"""
         ua = zeros((2,), dtype='U%s' % self.ulen)
@@ -195,6 +209,7 @@
         ua[1] = self.ucs_value*self.ulen
         self.content_check(ua, ua[1], 4*self.ulen*2)
 
+    @dec.knownfailureif(iswin64(), "Crash on win64")
     def test_valuesMD(self):
         """Check assignment of multi-dimensional objects with values"""
         ua = zeros((2,3,4), dtype='U%s' % self.ulen)
@@ -248,6 +263,7 @@
 class byteorder_values:
     """Check the byteorder of unicode arrays in round-trip conversions"""
 
+    @dec.knownfailureif(iswin64(), "Crash on win64")
     def test_values0D(self):
         """Check byteorder of 0-dimensional objects"""
         ua = array(self.ucs_value*self.ulen, dtype='U%s' % self.ulen)
@@ -260,6 +276,7 @@
         # Arrays must be equal after the round-trip
         assert_equal(ua, ua3)
 
+    @dec.knownfailureif(iswin64(), "Crash on win64")
     def test_valuesSD(self):
         """Check byteorder of single-dimensional objects"""
         ua = array([self.ucs_value*self.ulen]*2, dtype='U%s' % self.ulen)
@@ -270,6 +287,7 @@
         # Arrays must be equal after the round-trip
         assert_equal(ua, ua3)
 
+    @dec.knownfailureif(iswin64(), "Crash on win64")
     def test_valuesMD(self):
         """Check byteorder of multi-dimensional objects"""
         ua = array([[[self.ucs_value*self.ulen]*2]*3]*4,



More information about the Numpy-svn mailing list