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 568afaf

Browse filesBrowse files
committed
Fix failing animation test with pytest 6.2.
... per https://docs.pytest.org/en/stable/usage.html#unraisable.
1 parent 7a5458b commit 568afaf
Copy full SHA for 568afaf

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed

‎lib/matplotlib/tests/test_animation.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_animation.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ def test_animation_repr_html(writer, html, want, anim):
197197
html = anim._repr_html_()
198198
if want is None:
199199
assert html is None
200+
with pytest.warns(UserWarning):
201+
del anim # Animtion was never run, so will warn on cleanup.
200202
else:
201203
assert want in html
202204

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.