]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-125997: Increase test coverage for `time.sleep()` (GH-128751) (#128796)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 13 Jan 2025 17:23:27 +0000 (18:23 +0100)
committerGitHub <noreply@github.com>
Mon, 13 Jan 2025 17:23:27 +0000 (17:23 +0000)
commitf2a2809683d4181f21a9816b896151338dced219
treed7a6b66348adc1acc2f2fcc1ae98f9e16a2e5ced
parent1079619073b3eaf4c750dde9367c68c709d5f68d
[3.13] gh-125997: Increase test coverage for `time.sleep()` (GH-128751) (#128796)

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