Skip to content

Commit e7c9881

Browse files
committed
ENH: GH-35611 Tests for top-level Pandas functions serializable
1 parent 59ffa25 commit e7c9881

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pandas/tests/test_common.py

+8
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
import pandas as pd
1212
from pandas import Series, Timestamp
13+
import pandas._testing as tm
1314
from pandas.core import ops
1415
import pandas.core.common as com
1516

@@ -157,3 +158,10 @@ def test_version_tag():
157158
raise ValueError(
158159
"No git tags exist, please sync tags between upstream and your repo"
159160
)
161+
162+
163+
def test_serializable():
164+
for name, obj in pd.__dict__.items():
165+
if callable(obj):
166+
unpickled = tm.round_trip_pickle(obj)
167+
assert type(obj) == type(unpickled)

0 commit comments

Comments
 (0)