There was an error while loading. Please reload this page.
1 parent 04baaf7 commit eaa5576Copy full SHA for eaa5576
1 file changed
lib/matplotlib/tests/test_colors.py
@@ -781,15 +781,11 @@ def test_to_rgba_array_single_str():
781
assert_array_equal(mcolors.to_rgba_array("red"), [(1, 0, 0, 1)])
782
783
# 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")
+ array = mcolors.to_rgba_array("rgb")
788
assert_array_equal(array, [(1, 0, 0, 1), (0, 0.5, 0, 1), (0, 0, 1, 1)])
789
790
with pytest.raises(ValueError,
791
- match="neither a valid single color nor a color "
792
- "sequence"):
+ match="Invalid RGBA argument: 'x'"):
793
mcolors.to_rgba_array("rgbx")
794
795
0 commit comments