]> granicus.if.org Git - python/commitdiff
Issue #28240: Fix formatting of the warning.
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 19 Oct 2016 13:48:23 +0000 (15:48 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 19 Oct 2016 13:48:23 +0000 (15:48 +0200)
Lib/timeit.py

index d8112944bd35cf9630aa582a3a008b0a85aac115..0b5061f4807bc55d0ffb763a9d8d25dd20657c0d 100644 (file)
@@ -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