[Numpy-svn] r6234 - branches/fix_float_format/numpy/core/tests

numpy-svn@scip... numpy-svn@scip...
Sun Dec 28 21:49:32 CST 2008


Author: cdavid
Date: 2008-12-28 21:49:27 -0600 (Sun, 28 Dec 2008)
New Revision: 6234

Modified:
   branches/fix_float_format/numpy/core/tests/test_print.py
Log:
Fix formatting tests: cfloat and cdouble as well as np.float and np.double are the same; make sure we test 4 bytes float.

Modified: branches/fix_float_format/numpy/core/tests/test_print.py
===================================================================
--- branches/fix_float_format/numpy/core/tests/test_print.py	2008-12-29 03:49:09 UTC (rev 6233)
+++ branches/fix_float_format/numpy/core/tests/test_print.py	2008-12-29 03:49:27 UTC (rev 6234)
@@ -13,7 +13,7 @@
         python float precision.
 
     """
-    for t in [np.float, np.double, np.longdouble] :
+    for t in [np.float32, np.double, np.longdouble] :
         yield check_float_type, t
 
 def check_complex_type(tp):
@@ -30,7 +30,7 @@
         python float precision.
 
     """
-    for t in [np.cfloat, np.cdouble, np.clongdouble] :
+    for t in [np.complex64, np.cdouble, np.clongdouble] :
         yield check_complex_type, t
 
 if __name__ == "__main__":



More information about the Numpy-svn mailing list