]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-125997: Increase test coverage for `time.sleep()` (GH-128751) (#128795)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 13 Jan 2025 17:16:25 +0000 (18:16 +0100)
committerGitHub <noreply@github.com>
Mon, 13 Jan 2025 17:16:25 +0000 (17:16 +0000)
commite7400d787734ecf1ee3ae7a877ecf9aaeb76cf6c
treeece398493d8b547a5c061ebc993c5ca687e2f7ba
parent552b2a0f6eef913f5de8d6c9927296e7c30198f1
[3.12] gh-125997: Increase test coverage for `time.sleep()` (GH-128751) (#128795)

gh-125997: Increase test coverage for `time.sleep()` (GH-128751)

- Add tests for durations of invalid types.
- Add tests for `int` and `float` durations, including signed zeroes durations.
- Add tests for nonzero very small durations and durations close to the clock resolution.

---------
(cherry picked from commit b70a567575db37846beecbe8b40fb56b875274db)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_time.py