Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-38992: avoid fsum test failure from constant-folding #17513

Merged

Conversation

@mdickinson
Copy link
Member

mdickinson commented Dec 8, 2019

This is a tentative fix for the issue described at https://bugs.python.org/issue38992. One of the tests
for math.fsum was failing on a cross-compiled Python, due to two different values of a constant (1.7**1000) being used.

The change in this PR ensures that each power of 1.7 used in the fsum test is only computed once, so that there's no danger of using two different values of 1.7**1000.

https://bugs.python.org/issue38992

@mdickinson mdickinson merged commit bba873e into python:master Dec 9, 2019
4 checks passed
4 checks passed
Azure Pipelines PR #20191208.26 succeeded
Details
bedevere/issue-number Issue number 38992 found
Details
bedevere/news News entry found in Misc/NEWS.d
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@mdickinson mdickinson deleted the mdickinson:fix/fsum-constant-folding-test-failure branch Dec 9, 2019
@miss-islington

This comment has been minimized.

Copy link

miss-islington commented Dec 9, 2019

Thanks @mdickinson for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒🤖

miss-islington added a commit to miss-islington/cpython that referenced this pull request Dec 9, 2019
)

* Issue 38992: avoid fsum test failure

* Add NEWS entry
(cherry picked from commit bba873e)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
@bedevere-bot

This comment has been minimized.

Copy link

bedevere-bot commented Dec 9, 2019

GH-17530 is a backport of this pull request to the 3.8 branch.

mdickinson added a commit that referenced this pull request Dec 9, 2019
…H-17530)

* Issue 38992: avoid fsum test failure

* Add NEWS entry
(cherry picked from commit bba873e)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.