Skip to content

Commit d3f8db1

Browse files
committed
remove redundant test
1 parent 10d8216 commit d3f8db1

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

lib/matplotlib/gridspec.py

-1
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,6 @@ def update(self, left=None, bottom=None, right=None, top=None,
774774
if ((bottom if bottom is not None else self.bottom)
775775
>= (top if top is not None else self.top)):
776776
raise ValueError('bottom cannot be >= top')
777-
778777
if left is not None:
779778
self.left = left
780779
if right is not None:

lib/matplotlib/tests/test_figure.py

+2-11
Original file line numberDiff line numberDiff line change
@@ -1772,12 +1772,12 @@ def test_warn_colorbar_mismatch():
17721772

17731773
def test_clf_subplotpars():
17741774
keys = ('left', 'right', 'bottom', 'top', 'wspace', 'hspace')
1775-
rc_params = {key: plt.rcParams['figure.subplot.'+key] for key in keys}
1775+
rc_params = {key: plt.rcParams['figure.subplot.' + key] for key in keys}
17761776

17771777
fig = plt.figure(1)
17781778
fig.subplots_adjust({k: v+0.01 for k, v in rc_params.items()})
17791779
fig.clf()
1780-
assert fig.subplotpars.get_subplot_params() == rc_params
1780+
assert fig.subplotpars.to_dict() == rc_params
17811781

17821782

17831783
def test_suplots_adjust_incremental():
@@ -1787,15 +1787,6 @@ def test_suplots_adjust_incremental():
17871787
assert fig.subplotpars.left == 0
17881788
assert fig.subplotpars.right == 1
17891789

1790-
1791-
def test_suplots_adjust_2():
1792-
fig = plt.figure(1)
1793-
fig.subplots_adjust(wspace=0)
1794-
inDict = dict(left=0.1, right=0.7, bottom=0, top=0.9, hspace=0.05)
1795-
fig.subplots_adjust(**inDict)
1796-
assert fig.subplotpars.to_dict() == inDict
1797-
1798-
17991790
def test_set_figure():
18001791
fig = plt.figure()
18011792
sfig1 = fig.subfigures()

0 commit comments

Comments
 (0)