Commit 377dba4
committed
Drop alpha channel when saving comparison failure diff image.
We drop (for the better or the worse) the alpha channel when *comparing*
the images (in `compare_images`), but not when saving; thus, a
comparison failure where additionally the reference has no alpha but
the generated image has an alpha channel would so far raise a spurious
"image sizes do not match" when trying to save the diff image, rather
than actually saving the diff image as expected.
Noted while running the Matplotlib test suite with mplcairo.1 parent 3719994 commit 377dba4
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
425 | | - | |
426 | | - | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
427 | 428 | | |
428 | 429 | | |
429 | 430 | | |
| |||
0 commit comments