summaryrefslogtreecommitdiffstats
path: root/Lib/timeit.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-10-19 13:48:23 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-10-19 13:48:23 (GMT)
commitaf48a917158dd2ce339a8d7bbb769ff2f37809b4 (patch)
tree3b1346c413f20fd0bc7a1af2331dea80535e4006 /Lib/timeit.py
parent7f4e40e1e0c9a801d6741b385b722858a66037bd (diff)
downloadcpython-af48a917158dd2ce339a8d7bbb769ff2f37809b4.zip
cpython-af48a917158dd2ce339a8d7bbb769ff2f37809b4.tar.gz
cpython-af48a917158dd2ce339a8d7bbb769ff2f37809b4.tar.bz2
Issue #28240: Fix formatting of the warning.
Diffstat (limited to 'Lib/timeit.py')
-rw-r--r--Lib/timeit.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/timeit.py b/Lib/timeit.py
index d811294..0b5061f 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