Better test_error in the tests/
pzivich opened this issue · comments
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