]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-115490: Make the interpreter.channels and interpreter.queues Modules Handle Reload...
authorEric Snow <ericsnowcurrently@gmail.com>
Mon, 4 Mar 2024 20:59:30 +0000 (13:59 -0700)
committerGitHub <noreply@github.com>
Mon, 4 Mar 2024 20:59:30 +0000 (20:59 +0000)
commiteb22e2b251002b65f3b93e67c990c21e1151b25d
treec279e4ef29f7dfe5e7a72788ffb492542f729256
parent207030f5527d405940b79c10c1413c1e8ff696c1
gh-115490: Make the interpreter.channels and interpreter.queues Modules Handle Reloading Properly (gh-115493)

The problem manifested when the .py module got reloaded and the corresponding extension module didn't. The .py module registers types with the extension and the extension was not allowing that to happen more than once. The solution: let it happen more than once.
Lib/test/libregrtest/main.py
Lib/test/test__xxinterpchannels.py
Lib/test/test_interpreters/test_channels.py
Lib/test/test_interpreters/test_queues.py
Modules/_xxinterpchannelsmodule.c
Modules/_xxinterpqueuesmodule.c