DOC: clarify that assert_produces_warning can take multiple warnings #47829
Labels
good first issue
Testing
pandas testing functions or related to the test suite
Warnings
Warnings that appear or should be added to pandas
Noticed in #47828 (comment)
Currently, it's possible to match multiple warnings, by passing them as a tuple. But, this isn't documented, nor do the types suggest it:
Example:
So, the issue would be:
pandas/pandas/_testing/_warnings.py
Lines 19 to 27 in 8c7b0b2
expected_warning
so it can also beTuple[Type[Warning], ...]
The text was updated successfully, but these errors were encountered: