[Numpy-svn] r6297 - in trunk/numpy: core/tests lib/tests linalg/tests

numpy-svn@scip... numpy-svn@scip...
Tue Jan 6 04:09:40 CST 2009


Author: stefan
Date: 2009-01-06 04:09:00 -0600 (Tue, 06 Jan 2009)
New Revision: 6297

Modified:
   trunk/numpy/core/tests/test_numerictypes.py
   trunk/numpy/core/tests/test_unicode.py
   trunk/numpy/lib/tests/test_io.py
   trunk/numpy/linalg/tests/test_linalg.py
Log:
Use new-style classes with multiple-inheritance to address bug in IronPython.

Modified: trunk/numpy/core/tests/test_numerictypes.py
===================================================================
--- trunk/numpy/core/tests/test_numerictypes.py	2009-01-05 22:52:21 UTC (rev 6296)
+++ trunk/numpy/core/tests/test_numerictypes.py	2009-01-06 10:09:00 UTC (rev 6297)
@@ -97,7 +97,7 @@
 #    Creation tests
 ############################################################
 
-class create_zeros:
+class create_zeros(object):
     """Check the creation of heterogeneous arrays zero-valued"""
 
     def test_zeros0D(self):
@@ -140,7 +140,7 @@
     _descr = Ndescr
 
 
-class create_values:
+class create_values(object):
     """Check the creation of heterogeneous arrays with values"""
 
     def test_tuple(self):
@@ -200,7 +200,7 @@
 #    Reading tests
 ############################################################
 
-class read_values_plain:
+class read_values_plain(object):
     """Check the reading of values in heterogeneous arrays (plain)"""
 
     def test_access_fields(self):
@@ -232,7 +232,7 @@
     multiple_rows = 1
     _buffer = PbufferT
 
-class read_values_nested:
+class read_values_nested(object):
     """Check the reading of values in heterogeneous arrays (nested)"""
 
 

Modified: trunk/numpy/core/tests/test_unicode.py
===================================================================
--- trunk/numpy/core/tests/test_unicode.py	2009-01-05 22:52:21 UTC (rev 6296)
+++ trunk/numpy/core/tests/test_unicode.py	2009-01-06 10:09:00 UTC (rev 6297)
@@ -17,7 +17,7 @@
 #    Creation tests
 ############################################################
 
-class create_zeros:
+class create_zeros(object):
     """Check the creation of zero-valued arrays"""
 
     def content_check(self, ua, ua_scalar, nbytes):
@@ -69,7 +69,7 @@
     ulen = 1009
 
 
-class create_values:
+class create_values(object):
     """Check the creation of unicode arrays with values"""
 
     def content_check(self, ua, ua_scalar, nbytes):
@@ -154,7 +154,7 @@
 #    Assignment tests
 ############################################################
 
-class assign_values:
+class assign_values(object):
     """Check the assignment of unicode arrays with values"""
 
     def content_check(self, ua, ua_scalar, nbytes):

Modified: trunk/numpy/lib/tests/test_io.py
===================================================================
--- trunk/numpy/lib/tests/test_io.py	2009-01-05 22:52:21 UTC (rev 6296)
+++ trunk/numpy/lib/tests/test_io.py	2009-01-06 10:09:00 UTC (rev 6297)
@@ -8,7 +8,7 @@
 
 MAJVER, MINVER = sys.version_info[:2]
 
-class RoundtripTest:
+class RoundtripTest(object):
     def roundtrip(self, save_func, *args, **kwargs):
         """
         save_func : callable

Modified: trunk/numpy/linalg/tests/test_linalg.py
===================================================================
--- trunk/numpy/linalg/tests/test_linalg.py	2009-01-05 22:52:21 UTC (rev 6296)
+++ trunk/numpy/linalg/tests/test_linalg.py	2009-01-06 10:09:00 UTC (rev 6297)
@@ -202,7 +202,7 @@
         assert_equal(matrix_power(A,2),A)
 
 
-class HermitianTestCase:
+class HermitianTestCase(object):
     def test_single(self):
         a = array([[1.,2.], [2.,1.]], dtype=single)
         self.do(a)



More information about the Numpy-svn mailing list