8000 Alter tests to pass on 3.1.x · matplotlib/matplotlib@eaa5576 · GitHub
[go: up one dir, main page]

Skip to content

Commit eaa5576

Browse files
committed
Alter tests to pass on 3.1.x
1 parent 04baaf7 commit eaa5576

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/matplotlib/tests/test_colors.py

Lines 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