Skip to content

[3.10] gh-149776: Skip UDP Lite tests if it's not supported (#149777)#153594

Open
vstinner wants to merge 2 commits into
python:3.10from
vstinner:udplite10
Open

[3.10] gh-149776: Skip UDP Lite tests if it's not supported (#149777)#153594
vstinner wants to merge 2 commits into
python:3.10from
vstinner:udplite10

Conversation

@vstinner

@vstinner vstinner commented Jul 11, 2026

Copy link
Copy Markdown
Member

Fix test_socket on Linux kernel 7.1 and newer: skip UDP Lite tests if it's not supported.

(cherry picked from commit 3cfc249)

…9777)

Fix test_socket on Linux kernel 7.1 and newer: skip UDP Lite tests if
it's not supported.

(cherry picked from commit 3cfc249)
@vstinner

Copy link
Copy Markdown
Member Author

The Linux kernel of the "AMD64 Fedora Stable" buildbot was upgraded from 7.0 to 7.1, 3 days ago, so test_socket started to fail. The Linux kernel 7.1 removes the UDP Lite support. This PR backports a fix from the main branch.

@vstinner

Copy link
Copy Markdown
Member Author

cc @hugovk

@vstinner vstinner requested a review from a team as a code owner July 11, 2026 21:51
@vstinner

Copy link
Copy Markdown
Member Author

Windows (x64): "Build" failed with:

Using "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\msbuild.exe" (found in the Visual Studio installation)
Installing Python via nuget...
The system cannot execute the specified program.
Cannot locate python.exe on PATH or as PYTHON variable 
Error: Process completed with exit code 1.

I tried to build Python 3.11 on my Windows 11 VM. The externals\nuget.exe program is corrupted. When I tried to run it manually, I get a popup saying that the file is damaged or cannot be read.

The program is downloaded by the following command from PCbuild/find_python.bat:

powershell.exe -Command Invoke-WebRequest https://aka.ms/nugetclidl -OutFile 'C:\victor\python\3.10\PCbuild\\..\externals\nuget.exe'

It seems like the nuget download URL is outdated. The URL was updated... yesterday by commit 106eb53. I backported this change as well.

@vstinner

Copy link
Copy Markdown
Member Author

macOS: Oh, test_ssl failed with issue gh-151504:

======================================================================
ERROR: test_load_verify_cadata (test.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/cpython/cpython/Lib/test/test_ssl.py", line 1509, in test_load_verify_cadata
    ctx.load_verify_locations(cadata=cacert_der)
ssl.SSLError: [ASN1: NOT_ENOUGH_DATA] not enough data (_ssl.c:4040)

======================================================================
ERROR: test_connect_cadata (test.test_ssl.SimpleBackgroundTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/cpython/cpython/Lib/test/test_ssl.py", line 2152, in test_connect_cadata
    ctx.load_verify_locations(cadata=der)
ssl.SSLError: [ASN1: NOT_ENOUGH_DATA] not enough data (_ssl.c:4040)

@vstinner

Copy link
Copy Markdown
Member Author

macOS: Oh, test_ssl failed with issue gh-151504:

It lacks the ssl fix backport: #153312.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants