Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ceb724b

Browse files
committed
TST: Test that #6143 has been fixed
1 parent 79e09c0 commit ceb724b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/matplotlib/tests/test_lines.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,17 @@ def test_valid_linestyles():
118118
line.set_linestyle('aardvark')
119119

120120

121+
@cleanup
122+
def test_valid_drawstyles():
123+
if sys.version_info[:2] < (2, 7):
124+
raise nose.SkipTest("assert_raises as context manager "
125+
"not supported with Python < 2.7")
126+
127+
line = mlines.Line2D([], [])
128+
with assert_raises(ValueError):
129+
line.set_drawstyle('foobar')
130+
131+
121132
@image_comparison(baseline_images=['line_collection_dashes'], remove_text=True)
122133
def test_set_line_coll_dash_image():
123134
fig = plt.figure()

0 commit comments

Comments
 (0)