]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-135698: Fix Cross-interpreter Queue.full() With Negative/Default max_size...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 20 Jun 2025 20:51:01 +0000 (22:51 +0200)
committerGitHub <noreply@github.com>
Fri, 20 Jun 2025 20:51:01 +0000 (20:51 +0000)
commit35b90e8bec9cb93d10a8d08ee8c5af3096da8937
tree67ce5628a72148f93beff1e2e5579018e0d47e81
parentbd24261728e6b3c0c383746b72ad3ef34ed07bf1
[3.14] gh-135698: Fix Cross-interpreter Queue.full() With Negative/Default max_size (gh-135775)

We weren't handling non-positive maxsize values (including the default) properly
in Queue.full().  This change fixes that and adjusts an associated assert.

(cherry picked from commit c5ea8e8e8, AKA gh-135724)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Lib/test/test_interpreters/test_queues.py
Modules/_interpqueuesmodule.c