title: ImportError: cannot import name Error
body: <p>I have a very simple test function that I need to capture its execution time using 'timeit' module, but I get an error</p>
  
  <p>The function:</p>
  
  <pre><code>import timeit
  def test1():                            
      l = []
      for i in range(1000):
          l = l + [i]
  
  t1 = timeit.Timer("test1()", "from __main__ import test1")
  print(t1.timeit(number=1000))
  </code></pre>
  
  <blockquote>
    <p>The Error:  C:\Python34\lib\timeit.py:186: in timeit timing =
    self.inner(it, self.timer) :3: in inner ??? E<br>
    ImportError: cannot import name 'test1'
    =========== 1 error in 0.03 seconds ==============</p>
  </blockquote>
  
  <p>Can you guys help me with a solution?</p>