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

Skip to content

Commit 76f355b

Browse files
authored
Merge pull request #19331 from QuLogic/im-requires-ffmpeg
2 parents 0d4c60b + b5fe1d1 commit 76f355b

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)