Skip to content

Fixed 1656: Animation is Garbage Collected if not explicitly stored #8214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removed redundant try statement
  • Loading branch information
raychut committed Mar 8, 2017
commit 036f46ae1c10ffa7bd1d77a47c5033bd6a05da36
10 changes: 4 additions & 6 deletions lib/matplotlib/tests/test_animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,8 @@ def animate(i):
except UnicodeDecodeError:
pytest.xfail("There can be errors in the numpy import stack, "
"see issues #1891 and #2679")
try:
length = len(fig.animations)
assert(length != 0)
length = len(fig.animations)
assert(length != 0)


def test_animation_on_save():
Expand All @@ -187,9 +186,8 @@ def update_line(num, data, line):
plt.title('test')
animation.FuncAnimation(fig, update_line,
25, fargs=(data, l), interval=50, blit=True)
try:
length = len(fig.animations)
assert(length != 0)
length = len(fig.animations)
assert(length != 0)


def test_no_length_frames():
Expand Down