[docs] [issue18518] return-ing within code timed with timeit.timeit causes wrong return value of timeit.timeit

STINNER Victor report at bugs.python.org
Mon Jan 26 11:54:57 CET 2015


STINNER Victor added the comment:

Buildbots are unhappy. Example:

http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.0%202.7/builds/837/steps/test/logs/stdio

1 test failed:
    test_timeit

Re-running test 'test_timeit' in verbose mode
test test_timeit crashed -- <type 'exceptions.ImportError'>: No module named support
Traceback (most recent call last):
  File "./Lib/test/regrtest.py", line 901, in runtest_inner
  File "/usr/home/buildbot/python/2.7.koobs-freebsd10/build/Lib/test/test_timeit.py", line 8, in <module>
    from test.support import run_unittest
ImportError: No module named support
[44296 refs]
*** Error code 1

----------
nosy: +haypo

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18518>
_______________________________________


More information about the docs mailing list