parameters: (func, n)
return_statement: return t, times
docstring: Run each test N times.
      @param  func:   function for test
      @param  n:      times to repeat.
      @return:        (median time, times list)
docstring_summary: Run each test N times.
docstring_tokens: Run each test N times .
function: def run_writetest_N_times(func, n):
      """Run each test N times.
      @param  func:   function for test
      @param  n:      times to repeat.
      @return:        (median time, times list)
      """
      assert n > 0
      times = []
      for i in range_g(n):
          sio = StringIO()
          times.append(run_test(func, sio))
          sio.close()
      t = median(times)
      return t, times
function_tokens: def run_writetest_N_times ( func , n ) : assert n > 0 times = [ ] for i in range_g ( n ) : sio = StringIO ( ) times . append ( run_test ( func , sio ) ) sio . close ( ) t = median ( times ) return t , times