Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b45d2c4

Browse files
tacaswellQuLogic
andcommitted
MNT: minor change to test
Co-authored-by: Elliott Sales de Andrade <[email protected]>
1 parent 67d1126 commit b45d2c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_figure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1606,8 +1606,8 @@ def test_savefig_metadata_error(fmt):
16061606

16071607

16081608
def test_get_constrained_layout_pads():
1609-
expected = (0.01, 0.02, 0.03, 0.04)
1610-
params = dict(zip(['w_pad', 'h_pad', 'wspace', 'hspace'], expected))
1609+
params = {'w_pad': 0.01, 'h_pad': 0.02, 'wspace': 0.03, 'hspace': 0.04}
1610+
expected = tuple([*params.values()])
16111611
fig = plt.figure(layout=mpl.layout_engine.ConstrainedLayoutEngine(**params))
16121612
with pytest.warns(PendingDeprecationWarning, match="will be deprecated"):
16131613
assert fig.get_constrained_layout_pads() == expected

0 commit comments

Comments
 (0)