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

Skip to content

Commit 05acc6f

Browse files
committed
Skip pillow animation test if pillow not importable
1 parent 035ea50 commit 05acc6f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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)