@@ -330,7 +330,7 @@ def report_missing(dir, flist):
330
330
missing = list (pyfiles - flist - exclude )
331
331
missing .sort ()
332
332
if missing :
333
- print ('%s files not tested: %s' % (dir , ', ' .join (missing )))
333
+ print ('%s files not tested: %s' % (dir , ', ' .join (missing )))
334
334
335
335
336
336
def report_all_missing (directories ):
@@ -381,12 +381,12 @@ def drive(backend, directories, python=['python'], switches = []):
381
381
for fname in files [d ]]
382
382
383
383
for fullpath in testcases :
384
- print ('\t driving %-40s' % (fullpath )),
384
+ print ('\t driving %-40s' % (fullpath )),
385
385
sys .stdout .flush ()
386
386
fpath , fname = os .path .split (fullpath )
387
387
388
388
if fname in exclude :
389
- print ('\t Skipping %s, known to fail on backend: %s' % backend )
389
+ print ('\t Skipping %s, known to fail on backend: %s' % backend )
390
390
continue
391
391
392
392
basename , ext = os .path .splitext (fname )
@@ -430,7 +430,7 @@ def drive(backend, directories, python=['python'], switches = []):
430
430
program = [x % {'name' : basename } for x in python ]
431
431
ret = run (program + [tmpfile_name ] + switches )
432
432
end_time = time .time ()
433
- print ("%s %s" % ((end_time - start_time ), ret ))
433
+ print ("%s %s" % ((end_time - start_time ), ret ))
434
434
#os.system('%s %s %s' % (python, tmpfile_name, ' '.join(switches)))
435
435
os .remove (tmpfile_name )
436
436
if ret :
@@ -478,7 +478,7 @@ def parse_options():
478
478
switches = switches )
479
479
if 'pylab_examples' in result .dirs :
480
480
result .dirs [result .dirs .index ('pylab_examples' )] = 'pylab'
481
- #print result
481
+ #print( result)
482
482
return (result )
483
483
484
484
if __name__ == '__main__' :
@@ -492,14 +492,14 @@ def parse_options():
492
492
for d in localdirs :
493
493
if d .lower () not in all_backends_set :
494
494
continue
495
- print ('removing %s' % d )
495
+ print ('removing %s' % d )
496
496
for fname in glob .glob (os .path .join (d , '*' )):
497
497
os .remove (fname )
498
498
os .rmdir (d )
499
499
for fname in glob .glob ('_tmp*.py' ):
500
500
os .remove (fname )
501
501
502
- print ('all clean...' )
502
+ print ('all clean...' )
503
503
raise SystemExit
504
504
if options .coverage :
505
505
python = ['coverage.py' , '-x' ]
@@ -513,19 +513,19 @@ def parse_options():
513
513
514
514
report_all_missing (options .dirs )
515
515
for backend in options .backends :
516
- print ('testing %s %s' % (backend , ' ' .join (options .switches )))
516
+ print ('testing %s %s' % (backend , ' ' .join (options .switches )))
517
517
t0 = time .time ()
518
518
failures [backend ] = \
519
519
drive (backend , options .dirs , python , options .switches )
520
520
t1 = time .time ()
521
521
times [backend ] = (t1 - t0 )/ 60.0
522
522
523
- # print times
523
+ #print( times)
524
524
for backend , elapsed in times .items ():
525
- print ('Backend %s took %1.2f minutes to complete' % (backend , elapsed ))
525
+ print ('Backend %s took %1.2f minutes to complete' % (backend , elapsed ))
526
526
failed = failures [backend ]
527
527
if failed :
528
- print (' Failures: %s' % failed )
528
+ print (' Failures: %s' % failed )
529
529
if 'template' in times :
530
- print ('\t template ratio %1.3f, template residual %1.3f' % (
530
+ print ('\t template ratio %1.3f, template residual %1.3f' % (
531
531
elapsed / times ['template' ], elapsed - times ['template' ]))
0 commit comments