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

Skip to content

Commit e807fd7

Browse files
committed
Added min test to simulate issue #4068.
1 parent d595fe3 commit e807fd7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/matplotlib/tests/test_pickle.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,16 @@ def test_grid():
242242
pickle.dump(ax, BytesIO())
243243

244244

245+
@cleanup
246+
def test_polar():
247+
ax = plt.subplot(111, polar=True)
248+
fig = plt.gcf()
249+
result = BytesIO()
250+
pf = pickle.dumps(fig)
251+
pickle.loads(pf)
252+
plt.draw()
253+
254+
245255
if __name__ == '__main__':
246256
import nose
247257
nose.runmodule(argv=['-s'])

0 commit comments

Comments
 (0)