summaryrefslogtreecommitdiff
path: root/numpy/f2py/f2py_testing.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-08-18 11:51:25 -0600
committerCharles Harris <charlesr.harris@gmail.com>2013-08-18 11:51:25 -0600
commitfbd6510d58a47ea0d166c48a82793f05425406e4 (patch)
tree330ce703eb02d20f96099c3fe0fc36ae33d4905b /numpy/f2py/f2py_testing.py
parent8ddb0ce0acafe75d78df528b4d2540dfbf4b364d (diff)
downloadnumpy-fbd6510d58a47ea0d166c48a82793f05425406e4.tar.gz
STY: Giant comma spacing fixup.
Run the 2to3 ws_comma fixer on *.py files. Some lines are now too long and will need to be broken at some point. OTOH, some lines were already too long and need to be broken at some point. Now seems as good a time as any to do this with open PRs at a minimum.
Diffstat (limited to 'numpy/f2py/f2py_testing.py')
-rw-r--r--numpy/f2py/f2py_testing.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/numpy/f2py/f2py_testing.py b/numpy/f2py/f2py_testing.py
index e5ba8a9d5..4cec4baad 100644
--- a/numpy/f2py/f2py_testing.py
+++ b/numpy/f2py/f2py_testing.py
@@ -15,10 +15,10 @@ def cmdline():
else:
args.append(a)
f2py_opts = ' '.join(args)
- return repeat,f2py_opts
+ return repeat, f2py_opts
def run(runtest,test_functions,repeat=1):
- l = [(t,repr(t.__doc__.split('\n')[1].strip())) for t in test_functions]
+ l = [(t, repr(t.__doc__.split('\n')[1].strip())) for t in test_functions]
#l = [(t,'') for t in test_functions]
start_memusage = memusage()
diff_memusage = None
@@ -26,7 +26,7 @@ def run(runtest,test_functions,repeat=1):
i = 0
while i<repeat:
i += 1
- for t,fname in l:
+ for t, fname in l:
runtest(t)
if start_memusage is None: continue
if diff_memusage is None:
@@ -39,8 +39,8 @@ def run(runtest,test_functions,repeat=1):
fname)
diff_memusage = diff_memusage2
current_memusage = memusage()
- print('run',repeat*len(test_functions),'tests',\
+ print('run', repeat*len(test_functions), 'tests',\
'in %.2f seconds' % ((jiffies()-start_jiffies)/100.0))
if start_memusage:
- print('initial virtual memory size:',start_memusage,'bytes')
- print('current virtual memory size:',current_memusage,'bytes')
+ print('initial virtual memory size:', start_memusage, 'bytes')
+ print('current virtual memory size:', current_memusage, 'bytes')