diff options
author | cookedm <cookedm@localhost> | 2006-03-10 21:31:27 +0000 |
---|---|---|
committer | cookedm <cookedm@localhost> | 2006-03-10 21:31:27 +0000 |
commit | bf57380caa818b73a4c41409de6ff260425f9bb6 (patch) | |
tree | b2c42e0fde172de5def0c91811845808c00e296e /numpy/testing/utils.py | |
parent | f2db317c1fad63f1c85944ba8443b465e32774dc (diff) | |
download | numpy-bf57380caa818b73a4c41409de6ff260425f9bb6.tar.gz |
Run reindent.py (script distributed with Python) over the source to remove extraneous whitespace
Diffstat (limited to 'numpy/testing/utils.py')
-rw-r--r-- | numpy/testing/utils.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/numpy/testing/utils.py b/numpy/testing/utils.py index fe3a3c093..173122d5e 100644 --- a/numpy/testing/utils.py +++ b/numpy/testing/utils.py @@ -12,8 +12,8 @@ __all__ = ['assert_equal', 'assert_almost_equal','assert_approx_equal', def rand(*args): """Returns an array of random numbers with the given shape. - - This only uses the standard library, so it is useful for testing purposes. + + This only uses the standard library, so it is useful for testing purposes. """ import random from numpy.core import zeros, Float64 @@ -66,7 +66,7 @@ else: if os.name=='nt': # Code stolen from enthought/debug/memusage.py - import win32pdh + import win32pdh # from win32pdhutil, part of the win32all package def GetPerformanceAttributes(object, counter, instance = None, inum=-1, format = win32pdh.PDH_FMT_LONG, machine=None): @@ -90,7 +90,7 @@ if os.name=='nt': win32pdh.RemoveCounter(hc) finally: win32pdh.CloseQuery(hq) - + def memusage(processName="python", instance=0): return GetPerformanceAttributes("Process", "Virtual Bytes", processName, instance, @@ -260,4 +260,3 @@ def assert_array_less(x,y,err_msg=''): def runstring(astr, dict): exec astr in dict - |