8000 TST: adjust test · matplotlib/matplotlib@b0f7a18 · GitHub
[go: up one dir, main page]

Skip to content

Commit b0f7a18

Browse 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 b0f7a18

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/matplotlib/tests/test_animation.py

Lines 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.items():
88+
assert writer.savefig_kwargs[k] == v
8689
assert writer._count == anim.save_count
8790

8891

0 commit comments

Comments
 (0)
0