Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ad53f46

Browse files
authored
Merge pull request #10971 from dstansby/test-pillow-anim
Skip pillow animation test if pillow not importable
2 parents d54e2e3 + 05acc6f commit ad53f46

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/tests/test_animation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ def isAvailable(self):
136136
# matplotlib.testing.image_comparison
137137
@pytest.mark.parametrize('writer, output', WRITER_OUTPUT)
138138
def test_save_animation_smoketest(tmpdir, writer, output):
139+
if writer == 'pillow':
140+
pytest.importorskip("PIL")
139141
try:
140142
# for ImageMagick the rcparams must be patched to account for
141143
# 'convert' being a built in MS tool, not the imagemagick

0 commit comments

Comments
 (0)