Skip to content

Commit 9ed1e4d

Browse files
committed
The animation tests don't clean up after themselves, causing side effects in other tests
1 parent 6776fb3 commit 9ed1e4d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/matplotlib/tests/test_animation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,20 @@
44
from matplotlib import pyplot as plt
55
from matplotlib import animation
66
from matplotlib.testing.noseclasses import KnownFailureTest
7+
from matplotlib.testing.decorators import cleanup
78

89

910
WRITER_OUTPUT = dict(ffmpeg='mp4', ffmpeg_file='mp4',
1011
mencoder='mp4', mencoder_file='mp4',
1112
avconv='mp4', avconv_file='mp4',
1213
imagemagick='gif', imagemagick_file='gif')
13-
14+
1415

1516

1617
# Smoke test for saving animations. In the future, we should probably
1718
# design more sophisticated tests which compare resulting frames a-la
1819
# matplotlib.testing.image_comparison
20+
@cleanup
1921
def test_save_animation_smoketest():
2022
for writer, extension in WRITER_OUTPUT.iteritems():
2123
yield check_save_animation, writer, extension

0 commit comments

Comments
 (0)