We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1ac051 commit 71dfed7Copy full SHA for 71dfed7
pandas/tests/test_common.py
@@ -10,6 +10,7 @@
10
11
import pandas as pd
12
from pandas import Series, Timestamp
13
+import pandas._testing as tm
14
from pandas.core import ops
15
import pandas.core.common as com
16
@@ -157,3 +158,12 @@ def test_version_tag():
157
158
raise ValueError(
159
"No git tags exist, please sync tags between upstream and your repo"
160
)
161
+
162
163
+@pytest.mark.parametrize(
164
+ "obj", [(obj,) for obj in pd.__dict__.values() if callable(obj)]
165
+)
166
+def test_serializable(obj):
167
+ # GH 35611
168
+ unpickled = tm.round_trip_pickle(obj)
169
+ assert type(obj) == type(unpickled)
0 commit comments