8000 add test · matplotlib/matplotlib@ebcb026 · GitHub
[go: up one dir, main page]

Skip to content

Commit ebcb026

Browse files
committed
add test
1 parent ee9317e commit ebcb026

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/matplotlib/tests/test_collections.py

Lines changed: 6 additions & 0 deletions
8000
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,12 @@ def test_lslw_bcast():
611611
assert (col.get_linewidths() == [1, 2, 3]).all()
612612

613613

614+
def test_set_wrong_linestyle():
615+
c = Collection()
616+
with pytest.raises(ValueError, match="Do not know how to convert 'fuzzy'"):
617+
c.set_linestyle('fuzzy')
618+
619+
614620
@mpl.style.context('default')
615621
def test_capstyle():
616622
col = mcollections.PathCollection([], capstyle='round')

0 commit comments

Comments
 (0)
0