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

Better test_error in the tests/ #139

Open
pzivich opened this issue Jul 4, 2020 · 0 comments
Open

Better test_error in the tests/ #139

pzivich opened this issue Jul 4, 2020 · 0 comments

Comments

@pzivich
Copy link
Owner

pzivich commented Jul 4, 2020

tests like this have bitten me before: the call being tested could fail for many reasons and throw a ValueError. You probably are hoping it fails for a specific ValueError - I suggest using the match parameter in pytest.raises to narrow it down.

Originally posted by @CamDavidsonPilon in #131

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant