python / python/cpython

test_socket tests fail with kernel lacking support for IPPROTO_UDPLITE

Open
#149,078 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

tests type-bug
Dominant language
Python
Stars
77.2k
Forks
35.9k
PR merge metrics
PR metrics pending

Description

Bug report

Bug description:

When running on the kernel without support for UDPLite, setup of tests (function clientSetUp) in test_socket fails:

self.cli = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDPLITE)

this command raises OSError.

CPython versions tested on:

3.14

Operating systems tested on:

Linux

Complete build logs

Linked PRs
  • gh-149081

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in test_socket at the clientSetUp function and reproduce the failure on a Linux kernel without UDPLite support. Check how the test handles unavailable socket protocols, then run the relevant test_socket tests; done means setup no longer fails when IPPROTO_UDPLITE is unsupported. Linked PR gh-149081 indicates work is already underway.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
networking, testing-qa
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.