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

Skip to content

Commit b8398fe

Browse files
committed
TST: skip if known-bad version of imagemagick
xref ImageMagick/ImageMagick#2720
1 parent 65b3586 commit b8398fe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/matplotlib/tests/test_animation.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,11 @@ def test_save_animation_smoketest(tmpdir, writer, output, anim):
191191
def test_animation_repr_html(writer, html, want, anim):
192192
# create here rather than in the fixture otherwise we get __del__ warnings
193193
# about producing no output
194+
if writer == 'imagemagick':
195+
ret = subprocess.run(['convert', '--version'], capture_output=True)
196+
if b'7.0.10-34' in ret.stdout:
197+
# see https://github.com/ImageMagick/ImageMagick/issues/2720
198+
pytest.skip("Known bad version of imagemagick")
194199
anim = animation.FuncAnimation(**anim)
195200
with plt.rc_context({'animation.writer': writer,
196201
'animation.html': html}):

0 commit comments

Comments
 (0)