cpython/Lib/test/test_interpreters
Bhuvansh b205580c37
[3.13] gh-153005: Use a monotonic clock for concurrent.interpreters Queue timeouts (GH-154156) (GH-156019)
Queue.get() and Queue.put() computed their timeout deadline from
time.time(), the wall clock. If the system clock was stepped (NTP, a
manual change) while a call was blocked, the timeout could over- or
under-wait. queue.Queue uses time.monotonic() for the same reason.

Compute the deadline and check it against time.monotonic() instead.

(cherry picked from commit b94b9c8886)

Co-authored-by: Vyron Vasileiadis <hi@fedonman.com>
2026-08-20 19:46:38 +03:00
..
__init__.py
__main__.py
test_api.py [3.13] gh-155997: Fix list_all() if an interpreter is destroyed during the call (GH-155998) (GH-156006) 2026-08-18 12:41:07 +00:00
test_channels.py [3.13] gh-140652: Fix a crash in _interpchannels.list_all() after clo…sing a channel (GH-143743) (GH-144953) 2026-02-18 14:18:39 +00:00
test_lifecycle.py
test_queues.py [3.13] gh-153005: Use a monotonic clock for concurrent.interpreters Queue timeouts (GH-154156) (GH-156019) 2026-08-20 19:46:38 +03:00
test_stress.py [3.13] gh-152391: Improve test_interpreters.test_stress test (GH-152396) (#152430) 2026-06-27 15:48:38 +00:00
utils.py [3.13] tests: use errno.EBADF instead of hardcoded number in _close_file() (GH-148345) (#148411) 2026-04-12 18:13:53 -07:00