File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -132,13 +132,6 @@ def isAvailable(cls):
132132# matplotlib.testing.image_comparison
133133@pytest .mark .parametrize ('writer, output' , WRITER_OUTPUT )
134134def test_save_animation_smoketest (tmpdir , writer , output ):
135- try :
136- # for ImageMagick the rcparams must be patched to account for
137- # 'convert' being a built in MS tool, not the imagemagick
138- # tool.
139- writer ._init_from_registry ()
140- except AttributeError :
141- pass
142135 if not animation .writers .is_available (writer ):
143136 pytest .skip ("writer '%s' not available on this system" % writer )
144137 fig , ax = plt .subplots ()
@@ -182,8 +175,7 @@ def test_movie_writer_registry():
182175 assert len (animation .writers ._registered ) > 0
183176 mpl .rcParams ['animation.ffmpeg_path' ] = "not_available_ever_xxxx"
184177 assert not animation .writers .is_available ("ffmpeg" )
185- # something which is guaranteed to be available in path
186- # and exits immediately
178+ # something guaranteed to be available in path and exits immediately
187179 bin = "true" if sys .platform != 'win32' else "where"
188180 mpl .rcParams ['animation.ffmpeg_path' ] = bin
189181 assert animation .writers .is_available ("ffmpeg" )
You can’t perform that action at this time.
0 commit comments