From af48a917158dd2ce339a8d7bbb769ff2f37809b4 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 19 Oct 2016 15:48:23 +0200 Subject: [PATCH] Issue #28240: Fix formatting of the warning. --- Lib/timeit.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/timeit.py b/Lib/timeit.py index d8112944bd3..0b5061f4807 100644 --- a/Lib/timeit.py +++ b/Lib/timeit.py @@ -365,8 +365,7 @@ def format_time(dt): 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