Skip to content

Commit e1da8bc

Browse files
committed
Test empty verts
1 parent c09bef2 commit e1da8bc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/matplotlib/tests/test_patches.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,3 +571,8 @@ def test_color_override_warning(kwarg):
571571
match="Setting the 'color' property will override "
572572
"the edgecolor or facecolor properties."):
573573
Patch(color='black', **{kwarg: 'black'})
574+
575+
576+
def test_empty_verts():
577+
poly = Polygon(np.zeros((0, 2)))
578+
assert poly.get_verts() == []

0 commit comments

Comments
 (0)