]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-110088, gh-109878: Fix test_asyncio timeouts (#110092) (#110098)
authorVictor Stinner <vstinner@python.org>
Mon, 2 Oct 2023 19:35:29 +0000 (21:35 +0200)
committerGitHub <noreply@github.com>
Mon, 2 Oct 2023 19:35:29 +0000 (19:35 +0000)
commit0745ab88e502b56ca9a87cb6dd9cd1a23b53658a
tree4c72eebfa7fecbfc4f7d0025f738bae7c9d80198
parentc188a13c8ed3605e57caf6aa1783833f386e1c76
[3.12] gh-110088, gh-109878: Fix test_asyncio timeouts (#110092) (#110098)

gh-110088, gh-109878: Fix test_asyncio timeouts (#110092)

Fix test_asyncio timeouts: don't measure the maximum duration, a test
should not measure a CI performance. Only measure the minimum
duration when a task has a timeout or delay. Add CLOCK_RES to
test_asyncio.utils.

(cherry picked from commit db0a258e796703e12befea9d6dec04e349ca2f5b)
Lib/test/test_asyncio/test_base_events.py
Lib/test/test_asyncio/test_events.py
Lib/test/test_asyncio/test_timeouts.py
Lib/test/test_asyncio/test_waitfor.py
Lib/test/test_asyncio/test_windows_events.py
Lib/test/test_asyncio/utils.py
Misc/NEWS.d/next/Tests/2023-09-29-12-48-42.gh-issue-110088.qUhRga.rst [new file with mode: 0644]