Add test for setting a non-agg Matplotlib backend#1104
Add test for setting a non-agg Matplotlib backend#1104larsoner merged 2 commits intosphinx-gallery:masterfrom
Conversation
|
I think you need to adjust the number of examples expected in |
|
Oops, number now updated |
|
So far so good! Based on https://output.circle-artifacts.com/output/job/0dc682b1-1c23-4719-81d6-6e26cec1a970/artifacts/0/tiny_html/auto_examples/plot_matplotlib_backend.html it seems like a good test would be to check in |
|
Sure, I can check the example print output in a unit test, but I should presumably then remove the assert statements in the example itself. If there is a regression, those assert statements would cause to the build to fail before the unit test even has a chance to run. |
|
Ahh you're right, somehow I missed the |
|
Okay, great! |
This PR adds a regression test for #1102 via an example within
tinybuildin the test suite. If the Matplotlib backend is reset toaggbetween code blocks, the example will raise anAssertionErrorduring the build oftinybuild.