Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[3.10] gh-117187: Fix XML tests for vanilla Expat <2.6.0 (GH-117203)#117246

Merged
ambv merged 1 commit into
python:3.10python/cpython:3.10from
miss-islington:backport-9f74e86-3.10miss-islington/cpython:backport-9f74e86-3.10Copy head branch name to clipboard
Mar 27, 2024
Merged

[3.10] gh-117187: Fix XML tests for vanilla Expat <2.6.0 (GH-117203)#117246
ambv merged 1 commit into
python:3.10python/cpython:3.10from
miss-islington:backport-9f74e86-3.10miss-islington/cpython:backport-9f74e86-3.10Copy head branch name to clipboard

Conversation

@miss-islington

@miss-islington miss-islington commented Mar 26, 2024

Copy link
Copy Markdown
Contributor

This fixes XML unittest fallout from the #115398 security fix. When configured using --with-system-expat on systems with older pre 2.6.0 versions of libexpat, our unittests were failing.

  • sax|etree: Simplify Expat version guard where simplifiable

Idea by Matěj Cepl

  • sax|etree: Fix reparse deferral tests for vanilla Expat <2.6.0

This does not fix the case of distros with an older version of libexpat with the 2.6.0 feature backported as a security fix. (Ubuntu is a known example of this with its libexpat1 2.5.0-2ubunutu0.1 package)
(cherry picked from commit 9f74e86)

Co-authored-by: Sebastian Pipping sebastian@pipping.org

)

This fixes XML unittest fallout from the python#115398 security fix.  When configured using `--with-system-expat` on systems with older pre 2.6.0 versions of libexpat, our unittests were failing.

* sax|etree: Simplify Expat version guard where simplifiable

Idea by Matěj Cepl

* sax|etree: Fix reparse deferral tests for vanilla Expat <2.6.0

This *does not fix* the case of distros with an older version of libexpat with the 2.6.0 feature backported as a security fix.  (Ubuntu is a known example of this with its libexpat1 2.5.0-2ubunutu0.1 package)
(cherry picked from commit 9f74e86)

Co-authored-by: Sebastian Pipping <sebastian@pipping.org>
@bedevere-app bedevere-app Bot added the type-bug An unexpected behavior, bug, or error label Mar 26, 2024
@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label Mar 26, 2024
@ambv ambv merged commit 0a263cc into python:3.10 Mar 27, 2024
@miss-islington miss-islington deleted the backport-9f74e86-3.10 branch January 2, 2026 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-blocker tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Projects

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.