-
-
Notifications
You must be signed in to change notification settings - Fork 34.8k
timeit hardcodes plural "secs" #148254
Copy link
Copy link
Closed
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
Fields
Give feedbackNo fields configured for issues without a type.
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
Linked PRs