TST Replace unittest.TestCase.fail calls, use pytest.raises instead of legacy constructs by rth · Pull Request #22681 · pandas-dev/pandas (original) (raw)
Asserting that a warning is raised is too general. Currently this passes, but no warning related to matplotlib are raised (at least locally for me), instead I get,
The list of emitted warnings is:
[DeprecationWarning("Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working"),
DeprecationWarning("Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working")].
Just FYI, it's an unrelated issue.