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

Skip to content

Commit 164124c

Browse files
committed
Add long path test
1 parent 6735c35 commit 164124c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/matplotlib/tests/test_agg.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,17 @@ def test_marker_with_nan():
144144
fig.savefig(buf, format='png')
145145

146146

147+
@cleanup
148+
def test_long_path():
149+
buff = io.BytesIO()
150+
151+
fig, ax = plt.subplots()
152+
with np.random.seed(0):
153+
points = np.random.rand(70000)
154+
ax.plot(points)
155+
fig.savefig(buff, format='png')
156+
157+
147158
if __name__ == "__main__":
148159
import nose
149160
nose.runmodule(argv=['-s', '--with-doctest'], exit=False)

0 commit comments

Comments
 (0)