def run_test(func, name):
    sys.stdout.write(name + ': ')
    sys.stdout.flush()
    start_time = time.time()
    try:
        func()
    except:
        print "failed or not supported"
        global options
        if options.verbose:
            import traceback; traceback.print_exc()
    else:
        end_time = time.time()
        global total_time
        total_time += end_time - start_time
        print (end_time - start_time) % "%f seconds"
dataset/ETHPy150Open douban/python-libmemcached/benchmark.py/run_test/swapped operands of `%`