Skip to content

DOC: _binomtest.py: Add clearer error messages#19540

Merged
mdhaber merged 2 commits intoscipy:mainfrom
EwoutH:patch-6
Nov 16, 2023
Merged

DOC: _binomtest.py: Add clearer error messages#19540
mdhaber merged 2 commits intoscipy:mainfrom
EwoutH:patch-6

Conversation

@EwoutH
Copy link
Copy Markdown
Contributor

@EwoutH EwoutH commented Nov 16, 2023

Print actual values if ValueErrors occur in stats/_binomtest.py.

Print actual values if ValueErrors occur in _binomtest.py.
@lucascolley lucascolley added Documentation Issues related to the SciPy documentation. Also check https://github.com/scipy/scipy.org scipy.stats enhancement A new feature or improvement and removed Documentation Issues related to the SciPy documentation. Also check https://github.com/scipy/scipy.org labels Nov 16, 2023
Copy link
Copy Markdown
Member

@lucascolley lucascolley left a comment

Choose a reason for hiding this comment

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

CI failures are real as there are regex tests which need to be updated.

@mdhaber
Copy link
Copy Markdown
Contributor

mdhaber commented Nov 16, 2023

I was waiting to merge until CI passes. The changes looked fine, but I figured that some error message tests might fail. @EwoutH please adjust the appropriate tests.

@EwoutH
Copy link
Copy Markdown
Contributor Author

EwoutH commented Nov 16, 2023

You guys are very fast with reviewing, thanks!

I can take a look at the tests tomorrow morning (CET time), but I see you already started, which is perfect by me.

@mdhaber
Copy link
Copy Markdown
Contributor

mdhaber commented Nov 16, 2023

@lucascolley I went ahead and updated the tests. Care to take a look?

@mdhaber mdhaber merged commit 0dd80e6 into scipy:main Nov 16, 2023
@lucascolley
Copy link
Copy Markdown
Member

thanks @EwoutH !

@j-bowhay j-bowhay added this to the 1.12.0 milestone Nov 17, 2023
@EwoutH
Copy link
Copy Markdown
Contributor Author

EwoutH commented Nov 17, 2023

Thanks for reviewing, updating the tests and merging!

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

Labels

enhancement A new feature or improvement scipy.stats

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants