Skip to content

gh-91821: Make decimal test succeed consistently#91825

Merged
JelleZijlstra merged 2 commits into
python:mainfrom
JelleZijlstra:dectest
Apr 24, 2022
Merged

gh-91821: Make decimal test succeed consistently#91825
JelleZijlstra merged 2 commits into
python:mainfrom
JelleZijlstra:dectest

Conversation

@JelleZijlstra
Copy link
Copy Markdown
Member

The test relies on precision being set to 9, but some ways of
invoking this test leave it set to 28 instead. I don't know
exactly how it happens, but setting the precision directly should
make the behavior consistent.

#91821

The test relies on precision being set to 9, but some ways of
invoking this test leave it set to 28 instead. I don't know
exactly how it happens, but setting the precision directly should
make the behavior consistent.
@bedevere-bot bedevere-bot added tests Tests in the Lib/test dir awaiting core review labels Apr 22, 2022
@JelleZijlstra JelleZijlstra changed the title gh-91821: Make test succeed consistently gh-91821: Make decimal test succeed consistently Apr 22, 2022
@JelleZijlstra
Copy link
Copy Markdown
Member Author

Going to merge this so people don't keep running into mysterious test failures.

@JelleZijlstra JelleZijlstra merged commit e93d2fb into python:main Apr 24, 2022
@JelleZijlstra JelleZijlstra deleted the dectest branch April 24, 2022 22:03
@vstinner
Copy link
Copy Markdown
Member

Misc/NEWS.d/next/Library/2022-04-22-08-25-18.gh-issue-91821.XwMkj0.rst
Fix unstable test_from_tuple test in test_decimal.py.

FYI you can use the "Tests" category for tests changes.

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

Labels

tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants