Skip to content

Commit b178465

Browse files
committed
Apply the review comment
1 parent 0c16953 commit b178465

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

pandas/tests/test_common.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,10 @@ def test_version_tag():
160160
)
161161

162162

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)
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

Comments
 (0)