@@ -209,10 +209,12 @@ def test_movie_writer_registry():
209
209
mpl .rcParams ['animation.ffmpeg_path' ] = ffmpeg_path
210
210
211
211
212
- @pytest .mark .skipif (
213
- not animation .writers .is_available (mpl .rcParams ["animation.writer" ]),
214
- reason = "animation writer not installed" )
215
- @pytest .mark .parametrize ("method_name" , ["to_html5_video" , "to_jshtml" ])
212
+ @pytest .mark .parametrize (
213
+ "method_name" ,
214
+ [pytest .param ("to_html5_video" , marks = pytest .mark .skipif (
215
+ not animation .writers .is_available (mpl .rcParams ["animation.writer" ]),
216
+ reason = "animation writer not installed" )),
217
+ "to_jshtml" ])
216
218
def test_embed_limit (method_name , caplog , tmpdir ):
217
219
caplog .set_level ("WARNING" )
218
220
with tmpdir .as_cwd ():
@@ -224,14 +226,12 @@ def test_embed_limit(method_name, caplog, tmpdir):
224
226
and record .levelname == "WARNING" )
225
227
226
228
227
- @pytest .mark .skipif (
228
- not animation .writers .is_available (mpl .rcParams ["animation.writer" ]),
229
- reason = "animation writer not installed" )
230
229
@pytest .mark .parametrize (
231
230
"method_name" ,
232
- ["to_html5_video" ,
233
- pytest .param ("to_jshtml" ,
234
- marks = pytest .mark .xfail )])
231
+ [pytest .param ("to_html5_video" , marks = pytest .mark .skipif (
232
+ not animation .writers .is_available (mpl .rcParams ["animation.writer" ]),
233
+ reason = "animation writer not installed" )),
234
+ "to_jshtml" ])
235
235
def test_cleanup_temporaries (method_name , tmpdir ):
236
236
with tmpdir .as_cwd ():
237
237
getattr (make_animation (frames = 1 ), method_name )()
0 commit comments