8000 Update lib/matplotlib/tests/test_legend.py · matplotlib/matplotlib@3a53ebf · GitHub
[go: up one dir, main page]

Skip to content

Commit 3a53ebf

Browse files
chahak13timhoffm
andauthored
Update lib/matplotlib/tests/test_legend.py
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
1 parent 9842f15 commit 3a53ebf

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
@@ -703,7 +703,7 @@ def test_legend_pathcollection_labelcolor_linecolor_cmap():
703703

704704
leg = ax.legend(labelcolor='linecolor')
705705
text, = leg.get_texts()
706-
assert mpl.colors.same_color(text, 'black')
706+
assert mpl.colors.same_color(text.get_text(), 'black')
707707

708708

709709
def test_legend_labelcolor_markeredgecolor():

0 commit comments

Comments
 (0)
0