Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79e09c0 commit ceb724bCopy full SHA for ceb724b
lib/matplotlib/tests/test_lines.py
@@ -118,6 +118,17 @@ def test_valid_linestyles():
118
line.set_linestyle('aardvark')
119
120
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
132
@image_comparison(baseline_images=['line_collection_dashes'], remove_text=True)
133
def test_set_line_coll_dash_image():
134
fig = plt.figure()
0 commit comments