Skip to content

Commit 0f3dbc4

Browse files
authored
Merge pull request #6767 from tacaswell/tst_win_reg_fix
TST: reset rcparams in animation smoke test
2 parents a569f11 + 37785c9 commit 0f3dbc4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/matplotlib/tests/test_animation.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ def test_save_animation_smoketest():
3030

3131
@cleanup
3232
def check_save_animation(writer, extension='mp4'):
33+
try:
34+
# for ImageMagick the rcparams must be patched to account for
35+
# 'convert' being a built in MS tool, not the imagemagick
36+
# tool.
37+
writer._init_from_registry()
38+
except AttributeError:
39+
pass
3340
if not animation.writers.is_available(writer):
3441
raise KnownFailureTest("writer '%s' not available on this system"
3542
% writer)

0 commit comments

Comments
 (0)