Skip to content

gh-115159: Add SOCK_RAW regression tests - #154939

Draft
Taeknology wants to merge 1 commit into
python:mainfrom
Taeknology:gh-115159-sock-raw-tests
Draft

gh-115159: Add SOCK_RAW regression tests#154939
Taeknology wants to merge 1 commit into
python:mainfrom
Taeknology:gh-115159-sock-raw-tests

Conversation

@Taeknology

@Taeknology Taeknology commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Closes #115159.

Add an explicit netraw test resource for tests that create raw sockets. The resource is excluded from --use=all so potentially privileged operations remain opt-in.

test_socket now covers raw-socket creation when netraw is enabled. The asyncio tests always cover raw datagram endpoints, using a datagram-backed FakeRawSocket when the resource is disabled.

Tests: test_regrtest, test_socket, and test_asyncio.

Signed-off-by: Taeknology <20297177+Taeknology@users.noreply.github.com>
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.

Missing regression tests for SOCK_RAW support in standard library

1 participant