Skip to content

Commit 154a936

Browse files
authored
Merge pull request #16188 from anntzer/uninit
Remove ref. to non-existent method in animation tests.
2 parents 56d0828 + 577ce25 commit 154a936

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lib/matplotlib/tests/test_animation.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,6 @@ def isAvailable(cls):
132132
# matplotlib.testing.image_comparison
133133
@pytest.mark.parametrize('writer, output', WRITER_OUTPUT)
134134
def 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")

0 commit comments

Comments
 (0)