10000 TST: fix test · matplotlib/matplotlib@eda37a3 · GitHub
[go: up one dir, main page]

Skip to content

Commit eda37a3

Browse files
committed
TST: fix test
1 parent 77aec67 commit eda37a3

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

lib/matplotlib/tests/test_legend.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -343,35 +343,31 @@ def test_legend_handle_label(self):
343343
with mock.patch('matplotlib.legend.Legend') as Legend:
344344
fig.legend(lines, ['hello world'])
345345
Legend.assert_called_with(fig, lines, ['hello world'],
346-
bbox_transform=fig.transFigure,
347-
loc=None)
346+
bbox_transform=fig.transFigure)
348347

349348
def test_legend_no_args(self):
350349
fig, ax = plt.subplots()
351350
lines = ax.plot(range(10), label='hello world')
352351
with mock.patch('matplotlib.legend.Legend') as Legend:
353352
fig.legend()
354353
Legend.assert_called_with(fig, lines, ['hello world'],
355-
bbox_transform=fig.transFigure,
356-
loc=None)
354+
bbox_transform=fig.transFigure)
357355

358356
def test_legend_label_arg(self):
359357
fig, ax = plt.subplots()
360358
lines = ax.plot(range(10))
361359
with mock.patch('matplotlib.legend.Legend') as Legend:
362360
fig.legend(['foobar'])
363361
Legend.assert_called_with(fig, lines, ['foobar'],
364-
bbox_transform=fig.transFigure,
365-
loc=None)
362+
bbox_transform=fig.transFigure)
366363

367364
def test_legend_label_three_args(self):
368365
fig, ax = plt.subplots()
369366
lines = ax.plot(range(10))
370367
with mock.patch('matplotlib.legend.Legend') as Legend:
371368
fig.legend(lines, ['foobar'], 'right')
372369
Legend.assert_called_with(fig, lines, ['foobar'], 'right',
373-
bbox_transform=fig.transFigure,
374-
loc=None)
370+
bbox_transform=fig.transFigure)
375371

376372
def test_legend_label_three_args_pluskw(self):
377373
# test that third argument and loc= called together give

0 commit comments

Comments
 (0)
0