Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 611a9dc

Browse filesBrowse files
committed
Clearer error message
1 parent d435754 commit 611a9dc
Copy full SHA for 611a9dc

File tree

1 file changed

+3
-3
lines changed
Filter options

1 file changed

+3
-3
lines changed

‎lib/matplotlib/tests/test_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_axes.py
+3-3Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.