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 0c16953 commit b178465Copy full SHA for b178465
pandas/tests/test_common.py
@@ -160,8 +160,10 @@ def test_version_tag():
160
)
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)
+@pytest.mark.parametrize(
+ "obj", [(obj,) for obj in pd.__dict__.values() if callable(obj)]
+)
+def test_serializable(obj):
+ # GH 35611
168
+ unpickled = tm.round_trip_pickle(obj)
169
+ assert type(obj) == type(unpickled)
0 commit comments