Skip to content

Commit 193da2e

Browse files
committed
Add tests for [] and [[]] in test_artist.py
1 parent 91df80b commit 193da2e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/matplotlib/tests/test_artist.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,10 @@ def test_properties():
239239

240240
@cleanup
241241
def test_setp():
242+
# Check empty list
243+
plt.setp([])
244+
plt.setp([[]])
245+
242246
# Check arbitrary iterables
243247
fig, axes = plt.subplots()
244248
lines1 = axes.plot(range(3))

0 commit comments

Comments
 (0)