Skip to content

[docker] Run stubtest on Windows to cover the named pipe transport - #16422

Open
SharoonSharif wants to merge 1 commit into
python:mainfrom
SharoonSharif:docker-stubtest-win32
Open

SharoonSharif wants to merge 1 commit into
python:mainfrom
SharoonSharif:docker-stubtest-win32

Conversation

@SharoonSharif

Copy link
Copy Markdown

docker-py declares pywin32>=304; sys_platform == "win32", so on Windows docker.transport.npipeconn and docker.transport.npipesocket import and stubtest fails with two unused allowlist entries. On Linux, where CI runs, the modules never import, so the named pipe stubs are never checked against the runtime.

This moves the two entries to the linux and darwin allowlists and adds win32 to ci-platforms so the named pipe transport is tested where it exists.

Upstream: npipesocket.py, npipeconn.py, pyproject.toml dependency.

Agent used: Claude Code.

docker-py installs pywin32 on Windows, so docker.transport.npipeconn
and docker.transport.npipesocket import there and stubtest reported the
global allowlist entries for them as unused. Move those entries to the
linux and darwin allowlists, where the modules fail to import, and add
win32 to ci-platforms so the npipe stubs are checked against the
runtime.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant