[Numpy-svn] r3865 - trunk/numpy/testing

numpy-svn@scip... numpy-svn@scip...
Fri Jun 8 01:30:02 CDT 2007


Author: pearu
Date: 2007-06-08 01:29:34 -0500 (Fri, 08 Jun 2007)
New Revision: 3865

Modified:
   trunk/numpy/testing/utils.py
Log:
Typo fix: expose memusage for nt OS.

Modified: trunk/numpy/testing/utils.py
===================================================================
--- trunk/numpy/testing/utils.py	2007-06-08 06:08:04 UTC (rev 3864)
+++ trunk/numpy/testing/utils.py	2007-06-08 06:29:34 UTC (rev 3865)
@@ -92,12 +92,12 @@
         finally:
             win32pdh.CloseQuery(hq)
 
-        def memusage(processName="python", instance=0):
-            # from win32pdhutil, part of the win32all package
-            import win32pdh
-            return GetPerformanceAttributes("Process", "Virtual Bytes",
-                                            processName, instance,
-                                            win32pdh.PDH_FMT_LONG, None)
+    def memusage(processName="python", instance=0):
+        # from win32pdhutil, part of the win32all package
+        import win32pdh
+        return GetPerformanceAttributes("Process", "Virtual Bytes",
+                                        processName, instance,
+                                        win32pdh.PDH_FMT_LONG, None)
 
 def build_err_msg(arrays, err_msg, header='Items are not equal:',
                   verbose=True,



More information about the Numpy-svn mailing list