-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Labels
Error ReportingIncorrect or improved errors from pandasIncorrect or improved errors from pandasTestingpandas testing functions or related to the test suitepandas testing functions or related to the test suite
Milestone
Description
I'm wondering whether we should explicitly say in the docs that we prefer tm.assert_raises_regex
over pytest.raises
unless there is no error message to provide. The former is a lot more informative from a dev-perspective as to why certain code should fail.
Thoughts?
(If we can agree that we do prefer the former, I also move to convert some of the tests to use tm.assert_raises_regex
instead of pytest.raises
).
Metadata
Metadata
Assignees
Labels
Error ReportingIncorrect or improved errors from pandasIncorrect or improved errors from pandasTestingpandas testing functions or related to the test suitepandas testing functions or related to the test suite