Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9ed1e4d

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

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

‎lib/matplotlib/tests/test_animation.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_animation.py
+3-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.