From: Victor Stinner Date: Wed, 19 Oct 2016 13:48:23 +0000 (+0200) Subject: Issue #28240: Fix formatting of the warning. X-Git-Tag: v3.7.0a1~2197 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=af48a917158dd2ce339a8d7bbb769ff2f37809b4;p=thirdparty%2FPython%2Fcpython.git Issue #28240: Fix formatting of the warning. --- diff --git a/Lib/timeit.py b/Lib/timeit.py index d8112944bd35..0b5061f4807b 100644 --- a/Lib/timeit.py +++ b/Lib/timeit.py @@ -365,8 +365,7 @@ def main(args=None, *, _wrap_timer=None): warnings.warn_explicit("The test results are likely unreliable. " "The worst time (%s) was more than four times " "slower than the best time (%s)." - % (precision, - format_time(worst), format_time(best)), + % (format_time(worst), format_time(best)), UserWarning, '', 0) return None