Skip to content

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
@skirpichev skirpichev added the needs backport to 3.14 bugs and security fixes label Oct 22, 2025
@skirpichev
Copy link
Contributor

CC @vstinner

Copy link
Contributor

@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

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 <[email protected]>
@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 <[email protected]>
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