Skip to content

Commit 1d3ed91

Browse files
TomAugspurgerjreback
authored andcommitted
TST: Work around statsmodels bug (#24090)
1 parent d7e96d8 commit 1d3ed91

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pandas/tests/plotting/test_datetimelike.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
""" Test cases for time series specific (freq conversion, etc) """
2-
2+
import sys
33
from datetime import datetime, timedelta, date, time
44
import pickle
55

@@ -1557,7 +1557,10 @@ def _check_plot_works(f, freq=None, series=None, *args, **kwargs):
15571557
# GH18439
15581558
# this is supported only in Python 3 pickle since
15591559
# pickle in Python2 doesn't support instancemethod pickling
1560-
if PY3:
1560+
# TODO(statsmodels 0.10.0): Remove the statsmodels check
1561+
# https://github.com/pandas-dev/pandas/issues/24088
1562+
# https://github.com/statsmodels/statsmodels/issues/4772
1563+
if PY3 and 'statsmodels' not in sys.modules:
15611564
with ensure_clean(return_filelike=True) as path:
15621565
pickle.dump(fig, path)
15631566
finally:

0 commit comments

Comments
 (0)