[Numpy-svn] r5496 - branches/1.1.x/numpy/ma

numpy-svn@scip... numpy-svn@scip...
Tue Jul 22 00:22:11 CDT 2008


Author: pierregm
Date: 2008-07-22 00:22:08 -0500 (Tue, 22 Jul 2008)
New Revision: 5496

Modified:
   branches/1.1.x/numpy/ma/testutils.py
Log:
define actual_dtype and desired_dtype

Modified: branches/1.1.x/numpy/ma/testutils.py
===================================================================
--- branches/1.1.x/numpy/ma/testutils.py	2008-07-22 00:49:31 UTC (rev 5495)
+++ branches/1.1.x/numpy/ma/testutils.py	2008-07-22 05:22:08 UTC (rev 5496)
@@ -104,6 +104,7 @@
         raise ValueError(msg)
     actual = np.array(actual, copy=False, subok=True)
     desired = np.array(desired, copy=False, subok=True)
+    (actual_dtype, desired_dtype) = (actual.dtype, desired.dtype)
     if actual_dtype.char == "S" and desired_dtype.char == "S":
         return _assert_equal_on_sequences(actual.tolist(),
                                           desired.tolist(),



More information about the Numpy-svn mailing list