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

gh-130317: Fix SNaN broken tests on HP PA RISC#140452

Merged
vstinner merged 3 commits intopython:mainpython/cpython:mainfrom
stefanor:hppa-quiet-nansstefanor/cpython:hppa-quiet-nansCopy head branch name to clipboard
Oct 22, 2025
Merged

gh-130317: Fix SNaN broken tests on HP PA RISC#140452
vstinner merged 3 commits intopython:mainpython/cpython:mainfrom
stefanor:hppa-quiet-nansstefanor/cpython:hppa-quiet-nansCopy head branch name to clipboard

Conversation

@stefanor
Copy link
Contributor

@stefanor stefanor commented Oct 22, 2025

While looking at #140028 I found some unrelated test regressions in the 3.14 cycle. These seem to all come from #130317. From what I can tell, that made Python more correct than it was before. According to 0 HP PA RISC uses 1 for SNaN and thus a 0 for QNaN.

Update tests to expect this.

While looking at python#140028 I found some unrelated test regressions in the
3.14 cycle. These seem to all come from python#130317. From what I can tell,
that made Python more correct than it was before. According to [0] HP PA
RISC uses 1 for SNaN and thus a 0 for QNaN.

Update tests to expect this.

[0]: https://grouper.ieee.org/groups/1788/email/msg03272.html
@bedevere-app bedevere-app bot added tests Tests in the Lib/test dir awaiting review labels Oct 22, 2025
@stefanor
Copy link
Contributor Author

FYI: @thesamesam

@skirpichev skirpichev self-requested a review October 22, 2025 11:17
@skirpichev skirpichev changed the title Fix SNaN broken tests on HP PA RISC gh-130317: Fix SNaN broken tests on HP PA RISC Oct 22, 2025
Lib/test/test_capi/test_float.py Outdated Show resolved Hide resolved
Lib/test/test_struct.py Outdated Show resolved Hide resolved
@skirpichev skirpichev added the needs backport to 3.14 bugs and security fixes label Oct 22, 2025
@skirpichev
Copy link
Member

CC @vstinner

Copy link
Member

@skirpichev skirpichev left a comment

Choose a reason for hiding this comment

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

LGTM, minor nitpicks

Lib/test/test_capi/test_float.py Outdated Show resolved Hide resolved
Lib/test/test_struct.py Outdated Show resolved Hide resolved
Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM

@vstinner vstinner merged commit 76fea55 into python:main Oct 22, 2025
47 checks passed
@miss-islington-app
Copy link

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 22, 2025
While looking at pythonGH-140028, I found some unrelated test regressions in the
3.14 cycle. These seem to all come from pythonGH-130317. From what I can tell,
that made Python more correct than it was before. According to [0], HP PA
RISC uses 1 for SNaN and thus a 0 for QNaN.

[0]: https://grouper.ieee.org/groups/1788/email/msg03272.html
(cherry picked from commit 76fea55)

Co-authored-by: Stefano Rivera <stefano@rivera.za.net>
@stefanor stefanor deleted the hppa-quiet-nans branch October 22, 2025 16:36
@bedevere-app
Copy link

bedevere-app bot commented Oct 22, 2025

GH-140467 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Oct 22, 2025
@vstinner
Copy link
Member

Merged, thanks.

vstinner pushed a commit that referenced this pull request Oct 22, 2025
…40467)

gh-130317: Fix SNaN broken tests on HP PA RISC (GH-140452)

While looking at GH-140028, I found some unrelated test regressions in the
3.14 cycle. These seem to all come from GH-130317. From what I can tell,
that made Python more correct than it was before. According to [0], HP PA
RISC uses 1 for SNaN and thus a 0 for QNaN.

[0]: https://grouper.ieee.org/groups/1788/email/msg03272.html
(cherry picked from commit 76fea55)

Co-authored-by: Stefano Rivera <stefano@rivera.za.net>
StanFromIreland pushed a commit to StanFromIreland/cpython that referenced this pull request Dec 6, 2025
While looking at python#140028, I found some unrelated test regressions in the
3.14 cycle. These seem to all come from python#130317. From what I can tell,
that made Python more correct than it was before. According to [0], HP PA
RISC uses 1 for SNaN and thus a 0 for QNaN.

[0]: https://grouper.ieee.org/groups/1788/email/msg03272.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

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