]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-125997: Increase test coverage for `time.sleep()` (#128751)
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Mon, 13 Jan 2025 16:58:11 +0000 (17:58 +0100)
committerGitHub <noreply@github.com>
Mon, 13 Jan 2025 16:58:11 +0000 (17:58 +0100)
commitb70a567575db37846beecbe8b40fb56b875274db
treeb8b4af75469d7310bbde572d491beb493c15815e
parent53e8942e6938df3a32b783815f1bd4b76eed3dd0
gh-125997: Increase test coverage for `time.sleep()` (#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.

---------

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_time.py