Skip to content

Commit e42803c

Browse files
committed
add failing test: savefig(StringIO(), format="ps")
1 parent 6fc76e3 commit e42803c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
from __future__ import (absolute_import, division, print_function,
2+
unicode_literals)
3+
4+
import six
5+
6+
import matplotlib.pyplot as plt
7+
from matplotlib.testing.decorators import cleanup
8+
9+
10+
@cleanup
11+
def test_savefig_to_stringio():
12+
plt.figure()
13+
plt.plot([0, 1], [0, 1])
14+
plt.savefig(six.moves.StringIO(), format="ps")
15+
16+
17+
if __name__ == '__main__':
18+
import nose
19+
nose.runmodule(argv=['-s', '--with-doctest'], exit=False)

0 commit comments

Comments
 (0)