-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
timeit hardcodes plural "secs" #148254
Copy link
Copy link
Open
Labels
easystdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Metadata
Metadata
Assignees
Labels
easystdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Bug report
Bug description:
cpython/Lib/timeit.py
Lines 342 to 347 in 8687b9d
This should instead account for the (unlikely) situation that
time_taken == 1 sec, like we do for loops.CPython versions tested on:
CPython main branch
Operating systems tested on:
No response