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 eaa5576

Browse filesBrowse files
committed
Alter tests to pass on 3.1.x
1 parent 04baaf7 commit eaa5576
Copy full SHA for eaa5576

File tree

Expand file treeCollapse file tree

1 file changed

+2
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-6
lines changed

‎lib/matplotlib/tests/test_colors.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_colors.py
+2-6Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -781,15 +781,11 @@ def test_to_rgba_array_single_str():
781781
assert_array_equal(mcolors.to_rgba_array("red"), [(1, 0, 0, 1)])
782782

783783
# single char color sequence is deprecated
784-
with pytest.warns(cbook.MatplotlibDeprecationWarning,
785-
match="Using a string of single character colors as a "
786-
"color sequence is deprecated"):
787-
array = mcolors.to_rgba_array("rgb")
784+
array = mcolors.to_rgba_array("rgb")
788785
assert_array_equal(array, [(1, 0, 0, 1), (0, 0.5, 0, 1), (0, 0, 1, 1)])
789786

790787
with pytest.raises(ValueError,
791-
match="neither a valid single color nor a color "
792-
"sequence"):
788+
match="Invalid RGBA argument: 'x'"):
793789
mcolors.to_rgba_array("rgbx")
794790

795791

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.