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 6467046

Browse filesBrowse files
committed
TST: adjust test
We no longer just hold onto the savefig kwargs passed in from the user so adjust test to make sure the user values go through rather than simple dictionary equality.
1 parent 100d004 commit 6467046
Copy full SHA for 6467046

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+4
-1
lines changed

‎lib/matplotlib/tests/test_animation.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_animation.py
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ def test_null_movie_writer(anim):
8282
assert writer.outfile == filename
8383
assert writer.dpi == dpi
8484
assert writer.args == ()
85-
assert writer.savefig_kwargs == savefig_kwargs
85+
# we enrich the savefig kwargs to ensure we composite transparent
86+
# output to as opaque background
87+
for k, v in savefig_kwargs:
88+
assert writer.savefig_kwargs[k] == v
8689
assert writer._count == anim.save_count
8790

8891

0 commit comments

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