Skip to content

Commit bb3e101

Browse files
committed
TST: Add test pickling plot with DatetimeIndex
1 parent 4611140 commit bb3e101

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/tests/plotting/test_datetimelike.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
""" Test cases for time series specific (freq conversion, etc) """
22

33
from datetime import datetime, timedelta, date, time
4+
import pickle
45

56
import pytest
67
from pandas.compat import lrange, zip
@@ -1470,5 +1471,9 @@ def _check_plot_works(f, freq=None, series=None, *args, **kwargs):
14701471

14711472
with ensure_clean(return_filelike=True) as path:
14721473
plt.savefig(path)
1474+
1475+
# GH18439
1476+
with ensure_clean(return_filelike=True) as path:
1477+
pickle.dump(fig, path)
14731478
finally:
14741479
plt.close(fig)

0 commit comments

Comments
 (0)