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

Skip to content

Commit b5fe1d1

Browse files
committed
Skip an ImageMagick test if ffmpeg is unavailable.
For certain formats, ImageMagick delegates to ffmpeg.
1 parent e6479bd commit b5fe1d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/matplotlib/tests/test_animation.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,10 @@ def test_save_animation_smoketest(tmpdir, writer, frame_format, output, anim):
201201
])
202202
@pytest.mark.parametrize('anim', [dict(klass=dict)], indirect=['anim'])
203203
def test_animation_repr_html(writer, html, want, anim):
204+
if (writer == 'imagemagick' and html == 'html5'
205+
# ImageMagick delegates to ffmpeg for this format.
206+
and not animation.FFMpegWriter.isAvailable()):
207+
pytest.skip('Requires FFMpeg')
204208
# create here rather than in the fixture otherwise we get __del__ warnings
205209
# about producing no output
206210
anim = animation.FuncAnimation(**anim)

0 commit comments

Comments
 (0)