8000 Clearer error message · matplotlib/matplotlib@611a9dc · GitHub
[go: up one dir, main page]

Skip to content

Commit 611a9dc

Browse files
committed
Clearer error message
1 parent d435754 commit 611a9dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ def test_get_next_color():
7070
get_next_color_func=get_next_color
7171
)
7272
c, colors, _edgecolors = result
73-
assert c == 'b', f"Expected color spec 'b', got {c}"
73+
assert c == 'b', f"Expected c spec 'b', got {c}"
7474
assert np.array_equal(colors, [[0, 0, 1, 1]]), \
75-
f"Expected [[0, 0, 1, 1]], got {colors}"
76-
assert _edgecolors is None, f"Expected edgecolors None, got {_edgecolors}"
75+
f"Expected colors(RGBA) = [[0, 0, 1, 1]], got {colors}"
76+
assert _edgecolors is None, f"Expected _edgecolors = None, got {_edgecolors}"
7777

7878

7979
@check_figures_equal(extensions=["png"])

0 commit comments

Comments
 (0)
0