[Scipy-svn] r5440 - branches/0.7.x/scipy/weave/tests

scipy-svn@scip... scipy-svn@scip...
Mon Jan 12 02:43:28 CST 2009


Author: cdavid
Date: 2009-01-12 02:43:23 -0600 (Mon, 12 Jan 2009)
New Revision: 5440

Modified:
   branches/0.7.x/scipy/weave/tests/test_c_spec.py
   branches/0.7.x/scipy/weave/tests/test_scxx_sequence.py
Log:
More known failures on windows.

Modified: branches/0.7.x/scipy/weave/tests/test_c_spec.py
===================================================================
--- branches/0.7.x/scipy/weave/tests/test_c_spec.py	2009-01-12 07:29:52 UTC (rev 5439)
+++ branches/0.7.x/scipy/weave/tests/test_c_spec.py	2009-01-12 08:43:23 UTC (rev 5440)
@@ -49,22 +49,27 @@
 
 class IntConverter(TestCase):
     compiler = ''
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_type_match_string(self):
         s = c_spec.int_converter()
         assert( not s.type_match('string') )
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_type_match_int(self):
         s = c_spec.int_converter()
         assert(s.type_match(5))
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_type_match_float(self):
         s = c_spec.int_converter()
         assert(not s.type_match(5.))
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_type_match_complex(self):
         s = c_spec.int_converter()
         assert(not s.type_match(5.+1j))
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_var_in(self):
         mod_name = 'int_var_in' + self.compiler
@@ -89,6 +94,7 @@
         except TypeError:
             pass
 
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_int_return(self):
         mod_name = sys._getframe().f_code.co_name + self.compiler
@@ -110,22 +116,27 @@
 
 class FloatConverter(TestCase):
     compiler = ''
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_type_match_string(self):
         s = c_spec.float_converter()
         assert( not s.type_match('string'))
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_type_match_int(self):
         s = c_spec.float_converter()
         assert(not s.type_match(5))
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_type_match_float(self):
         s = c_spec.float_converter()
         assert(s.type_match(5.))
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_type_match_complex(self):
         s = c_spec.float_converter()
         assert(not s.type_match(5.+1j))
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_float_var_in(self):
         mod_name = sys._getframe().f_code.co_name + self.compiler
@@ -151,6 +162,7 @@
             pass
 
 
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_float_return(self):
         mod_name = sys._getframe().f_code.co_name + self.compiler
@@ -171,22 +183,27 @@
 
 class ComplexConverter(TestCase):
     compiler = ''
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_type_match_string(self):
         s = c_spec.complex_converter()
         assert( not s.type_match('string') )
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_type_match_int(self):
         s = c_spec.complex_converter()
         assert(not s.type_match(5))
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_type_match_float(self):
         s = c_spec.complex_converter()
         assert(not s.type_match(5.))
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_type_match_complex(self):
         s = c_spec.complex_converter()
         assert(s.type_match(5.+1j))
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_complex_var_in(self):
         mod_name = sys._getframe().f_code.co_name + self.compiler
@@ -211,6 +228,7 @@
         except TypeError:
             pass
 
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_complex_return(self):
         mod_name = sys._getframe().f_code.co_name + self.compiler
@@ -235,6 +253,7 @@
 
 class FileConverter(TestCase):
     compiler = ''
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_py_to_file(self):
         import tempfile
@@ -247,6 +266,7 @@
         file.close()
         file = open(file_name,'r')
         assert(file.read() == "hello bob")
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_file_to_py(self):
         import tempfile
@@ -278,6 +298,7 @@
 
 class CallableConverter(TestCase):
     compiler=''
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_call_function(self):
         import string
@@ -299,18 +320,22 @@
 
 class SequenceConverter(TestCase):
     compiler = ''
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_convert_to_dict(self):
         d = {}
         inline_tools.inline("",['d'],compiler=self.compiler,force=1)
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_convert_to_list(self):
         l = []
         inline_tools.inline("",['l'],compiler=self.compiler,force=1)
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_convert_to_string(self):
         s = 'hello'
         inline_tools.inline("",['s'],compiler=self.compiler,force=1)
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_convert_to_tuple(self):
         t = ()
@@ -318,22 +343,27 @@
 
 class StringConverter(TestCase):
     compiler = ''
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_type_match_string(self):
         s = c_spec.string_converter()
         assert( s.type_match('string') )
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_type_match_int(self):
         s = c_spec.string_converter()
         assert(not s.type_match(5))
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_type_match_float(self):
         s = c_spec.string_converter()
         assert(not s.type_match(5.))
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_type_match_complex(self):
         s = c_spec.string_converter()
         assert(not s.type_match(5.+1j))
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_var_in(self):
         mod_name = 'string_var_in'+self.compiler
@@ -359,6 +389,7 @@
         except TypeError:
             pass
 
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_return(self):
         mod_name = 'string_return'+self.compiler
@@ -379,16 +410,19 @@
 
 class ListConverter(TestCase):
     compiler = ''
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_type_match_bad(self):
         s = c_spec.list_converter()
         objs = [{},(),'',1,1.,1+1j]
         for i in objs:
             assert( not s.type_match(i) )
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_type_match_good(self):
         s = c_spec.list_converter()
         assert(s.type_match([]))
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_var_in(self):
         mod_name = 'list_var_in'+self.compiler
@@ -413,6 +447,7 @@
         except TypeError:
             pass
 
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_return(self):
         mod_name = 'list_return'+self.compiler
@@ -432,6 +467,7 @@
         c = test(b)
         assert( c == ['hello'])
 
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_speed(self):
         mod_name = 'list_speed'+self.compiler
@@ -495,16 +531,19 @@
 
 class TupleConverter(TestCase):
     compiler = ''
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_type_match_bad(self):
         s = c_spec.tuple_converter()
         objs = [{},[],'',1,1.,1+1j]
         for i in objs:
             assert( not s.type_match(i) )
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_type_match_good(self):
         s = c_spec.tuple_converter()
         assert(s.type_match((1,)))
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_var_in(self):
         mod_name = 'tuple_var_in'+self.compiler
@@ -529,6 +568,7 @@
         except TypeError:
             pass
 
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_return(self):
         mod_name = 'tuple_return'+self.compiler
@@ -560,16 +600,19 @@
     # so that it can run on its own.
     compiler=''
 
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_type_match_bad(self):
         s = c_spec.dict_converter()
         objs = [[],(),'',1,1.,1+1j]
         for i in objs:
             assert( not s.type_match(i) )
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_type_match_good(self):
         s = c_spec.dict_converter()
         assert(s.type_match({}))
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_var_in(self):
         mod_name = 'dict_var_in'+self.compiler
@@ -594,6 +637,7 @@
         except TypeError:
             pass
 
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_return(self):
         mod_name = 'dict_return'+self.compiler

Modified: branches/0.7.x/scipy/weave/tests/test_scxx_sequence.py
===================================================================
--- branches/0.7.x/scipy/weave/tests/test_scxx_sequence.py	2009-01-12 07:29:52 UTC (rev 5439)
+++ branches/0.7.x/scipy/weave/tests/test_scxx_sequence.py	2009-01-12 08:43:23 UTC (rev 5440)
@@ -21,6 +21,7 @@
 class _TestSequenceBase(TestCase):
     seq_type = None
 
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_conversion(self):
         a = self.seq_type([1])
@@ -34,6 +35,7 @@
         #print '2nd,3rd:', before, after
         assert(after == before)
 
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_in(self):
         """ Test the "in" method for lists.  We'll assume
@@ -87,6 +89,7 @@
         res = inline_tools.inline(code,['a'])
         assert res == 0
 
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_count(self):
         """ Test the "count" method for lists.  We'll assume
@@ -122,6 +125,7 @@
         res = inline_tools.inline(code,['a'])
         assert res == 1
 
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_access_speed(self):
         N = 1000000
@@ -153,6 +157,7 @@
         print 'weave:', t2 - t1
 
 # Fails
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_access_set_speed(self):
         N = 1000000
@@ -184,6 +189,7 @@
 class TestTuple(_TestSequenceBase):
     seq_type = tuple
 
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_set_item_operator_equal_fail(self):
         # Tuples should only allow setting of variables
@@ -193,6 +199,7 @@
             inline_tools.inline("a[1] = 1234;",['a'])
         except TypeError:
             pass
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_set_item_operator_equal(self):
         code = """
@@ -207,6 +214,7 @@
         # returned value should only have a single refcount
         assert sys.getrefcount(a) == 2
 
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_set_item_index_error(self):
         code = """
@@ -219,6 +227,7 @@
             assert 0
         except IndexError:
             pass
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_get_item_operator_index_error(self):
         code = """
@@ -233,6 +242,7 @@
 
 class TestList(_TestSequenceBase):
     seq_type = list
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_append_passed_item(self):
         a = []
@@ -251,6 +261,7 @@
         after2 = sys.getrefcount(item)
         assert after1 == before1
         assert after2 == before2
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_append(self):
         a = []
@@ -286,6 +297,7 @@
 
         after1 = sys.getrefcount(a)
         assert after1 == before1
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_insert(self):
         a = [1,2,3]
@@ -326,6 +338,7 @@
         after1 = sys.getrefcount(a)
         assert after1 == before1
 
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_set_item_operator_equal(self):
         a = self.seq_type([1,2,3])
@@ -359,6 +372,7 @@
 
         after1 = sys.getrefcount(a)
         assert after1 == before1
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_set_item_operator_equal_created(self):
         code = """
@@ -372,6 +386,7 @@
         assert a == [1,2,3]
         # returned value should only have a single refcount
         assert sys.getrefcount(a) == 2
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_set_item_index_error(self):
         code = """
@@ -383,6 +398,7 @@
             assert 0
         except IndexError:
             pass
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_get_item_index_error(self):
         code = """
@@ -395,6 +411,7 @@
         except IndexError:
             pass
 
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_string_add_speed(self):
         N = 1000000
@@ -422,6 +439,7 @@
         t2 = time.time()
         print 'weave:', t2 - t1
         assert b == desired
+    @dec.knownfailureif(sys.platform=='win32')
     @dec.slow
     def test_int_add_speed(self):
         N = 1000000



More information about the Scipy-svn mailing list