Skip to content

Commit 9842f15

Browse files
chahak13timhoffm
andauthored
Update lib/matplotlib/tests/test_legend.py
Co-authored-by: Tim Hoffmann <[email protected]>
1 parent 41162b3 commit 9842f15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tests/test_legend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ def test_legend_pathcollection_labelcolor_linecolor_iterable():
692692

693693
leg = ax.legend(labelcolor='linecolor')
694694
text, = leg.get_texts()
695-
assert mpl.colors.same_color(text, 'black')
695+
assert mpl.colors.same_color(text.get_text(), 'black')
696696

697697

698698
def test_legend_pathcollection_labelcolor_linecolor_cmap():

0 commit comments

Comments
 (0)