[issue5633] fix for timeit when the statment is a string and the setup is not (and tests)

Michael Henry report at bugs.python.org
Wed Mar 16 23:19:47 CET 2011


Michael Henry <python at drmikehenry.com> added the comment:

Issue #11578 added unit tests for timeit.py.  Because of this bug, two tests
were omitted.  In the attached patch are the previously withheld  unit tests
and an alternate method of fixing the bug (developed before Tim's fix was
noticed).  It's not clear to me what timing-related issues influence the
strategy for fixing this bug.

----------
keywords: +patch
nosy: +michael.henry, r.david.murray
versions: +Python 3.2, Python 3.3
Added file: http://bugs.python.org/file21253/timeit_issue_5633.patch

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


More information about the Python-bugs-list mailing list