Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

GH-144739: Skip test_pyexpat.MemoryProtectionTest based on expat compile-time version, not runtime#144740

Merged
vstinner merged 2 commits intopython:mainfrom
hroncok:expat-skipif
Mar 4, 2026
Merged

GH-144739: Skip test_pyexpat.MemoryProtectionTest based on expat compile-time version, not runtime#144740
vstinner merged 2 commits intopython:mainfrom
hroncok:expat-skipif

Conversation

@hroncok
Copy link
Contributor

@hroncokhroncok commentedFeb 12, 2026
edited by bedevere-appbot
Loading

@hroncok
Copy link
ContributorAuthor

I'm yet to actually test this by the described reproducer.

@hroncok
Copy link
ContributorAuthor

I'm yet to actually test this by the described reproducer.

It works.

Copy link
Member

@vstinnervstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM. It makes sense to check for.SetAllocTrackerMaximumAmplification attribute (method) instead of relying on the expat version.

@picnixz: Do you want to double check this change?

@vstinnervstinner added needs backport to 3.13bugs and security fixes needs backport to 3.14bugs and security fixes labelsMar 4, 2026
Copy link
Member

@picnixzpicnixz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I thinkSetBillionLaughsAttackProtectionActivationThreshold also suffers from that so the test guarding for expat 2.4 should also be guarded. I don't remember whether 3.13 was the release that included that one or if it was something that was already there for a long time. You can address that in a follow-up PR though.

@vstinnervstinner merged commit45e9343 intopython:mainMar 4, 2026
55 checks passed
@miss-islington-app
Copy link

Thanks@hroncok for the PR, and@vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Sorry,@hroncok and@vstinner, I could not cleanly backport this to3.14 due to a conflict.
Please backport usingcherry_picker on command line.

cherry_picker 45e9343d7eed1d9e784e731cc9af853fa8649e59 3.14

@miss-islington-app
Copy link

Sorry,@hroncok and@vstinner, I could not cleanly backport this to3.13 due to a conflict.
Please backport usingcherry_picker on command line.

cherry_picker 45e9343d7eed1d9e784e731cc9af853fa8649e59 3.13

vstinner pushed a commit to vstinner/cpython that referenced this pull requestMar 4, 2026
…t compile-time version, not runtime (python#144740)(cherry picked from commit45e9343)
@bedevere-app
Copy link

GH-145494 is a backport of this pull request to the3.14 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.14bugs and security fixes labelMar 4, 2026
@vstinnervstinner removed the needs backport to 3.13bugs and security fixes labelMar 4, 2026
@vstinner
Copy link
Member

Merged. Thanks for the fix@hroncok.

hroncok reacted with heart emoji

@hroncokhroncok deleted the expat-skipif branchMarch 4, 2026 13:04
vstinner added a commit that referenced this pull requestMar 4, 2026
…at compile-time version, not runtime (#144740) (#145494)GH-144739: Skip test_pyexpat.MemoryProtectionTest based on expat compile-time version, not runtime (#144740)(cherry picked from commit45e9343)Co-authored-by: Miro Hrončok <miro@hroncok.cz>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestMar 4, 2026
…on expat compile-time version, not runtime (pythonGH-144740) (pythonGH-145494)pythonGH-144739: Skip test_pyexpat.MemoryProtectionTest based on expat compile-time version, not runtime (pythonGH-144740)(cherry picked from commit45e9343)(cherry picked from commitbcc2dd8)Co-authored-by: Victor Stinner <vstinner@python.org>Co-authored-by: Miro Hrončok <miro@hroncok.cz>
vstinner added a commit that referenced this pull requestMar 4, 2026
…at compile-time version, not runtime (GH-144740) (GH-145494) (#145510)[3.14]GH-144739: Skip test_pyexpat.MemoryProtectionTest based on expat compile-time version, not runtime (GH-144740) (GH-145494)GH-144739: Skip test_pyexpat.MemoryProtectionTest based on expat compile-time version, not runtime (GH-144740)(cherry picked from commit45e9343)(cherry picked from commitbcc2dd8)Co-authored-by: Victor Stinner <vstinner@python.org>Co-authored-by: Miro Hrončok <miro@hroncok.cz>
@hroncok
Copy link
ContributorAuthor

I thinkSetBillionLaughsAttackProtectionActivationThreshold also suffers from that so the test guarding for expat 2.4 should also be guarded. I don't remember whether 3.13 was the release that included that one or if it was something that was already there for a long time. You can address that in a follow-up PR though.

FTR I don't have an environment with epxat that old, so I won't be driving that change.

vstinner reacted with thumbs up emoji

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

Reviewers

@vstinnervstinnervstinner approved these changes

@picnixzpicnixzpicnixz approved these changes

Assignees

@vstinnervstinner

Labels

testsTests in the Lib/test dir

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@hroncok@vstinner@picnixz

[8]ページ先頭

©2009-2026 Movatter.jp