Commit fb31d90
committed
Fixed SVG-as-text image comparison tests.
SVG-as-text tests make make the figure background transparent, but the underlying colour is black. Before the expected and actual images are compared, they are converted from RGBA to RGB, which makes them both completely black (since the text is also black). As a result, the test passes even if the expected and actual images differ. Making the text white solves this problem.1 parent 40dea5a commit fb31d90
3 files changed
Lines changed: 3 additions & 2 deletions
File tree
- lib/matplotlib/tests
- baseline_images/test_mathtext
Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 1 addition & 1 deletion
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| 219 | + | |
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
| |||
0 commit comments