Warnings in plot directive aren't treated as such by Sphinx #15715
Labels
Difficulty: Hard
https://matplotlib.org/devdocs/devel/contribute.html#good-first-issues
Good first issue
Open a pull request against these issues if there are no active ones!
topic: sphinx extension
Milestone
Bug report
Bug summary
sphinx-build
has a-W
option to turn warnings into errors. However, this doesn't seem to have any effect on warnings emitted inside plot directives.Code for reproduction
To reproduce, create an empty directory then add a
conf.py
file with:and an
index.rst
file with:Then run:
The
-W
flag should turn warnings into errors, but this is not the case.Actual outcome
Expected outcome
The build should fail with an error.
Matplotlib version
The text was updated successfully, but these errors were encountered: