Skip to content

gh-155332: Use self.Value instead of bare Value in two threads-only pool tests - #155333

Open
Talen400 wants to merge 1 commit into
python:mainfrom
Talen400:fix-multiprocessing-imap-buffersize-test
Open

gh-155332: Use self.Value instead of bare Value in two threads-only pool tests#155333
Talen400 wants to merge 1 commit into
python:mainfrom
Talen400:fix-multiprocessing-imap-buffersize-test

Conversation

@Talen400

@Talen400 Talen400 commented Aug 7, 2026

Copy link
Copy Markdown

Fixes a NameError when ctypes/sharedctypes are unavailable (gh-155332):
these two tests used the module-level Value from the guarded sharedctypes
import, with no HAS_SHAREDCTYPES skip guard.

The tests are threads-only, so self.Value resolves to
multiprocessing.dummy.Value and no longer depends on sharedctypes; this
also matches how the rest of the suite creates shared values. When ctypes
is available both forms are equivalent (value initialized to zero).

First contribution to CPython - happy to adjust to the project process

@Talen400
Talen400 requested a review from gpshead as a code owner August 7, 2026 12:47
@python-cla-bot

python-cla-bot Bot commented Aug 7, 2026

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label Aug 7, 2026
@bedevere-app

bedevere-app Bot commented Aug 7, 2026

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant