Skip to content

Commit 5fb858d

Browse files
committed
Improve test
1 parent b825d41 commit 5fb858d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

distributed/shuffle/tests/test_shuffle.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,8 +806,13 @@ def __init__(self, value: int) -> None:
806806
bio.seek(0)
807807
out[k] = load_partition(bio)
808808

809-
assert sum(map(len, out.values())) == len(df)
810-
assert all(v.to_pandas().dtypes.equals(df.dtypes) for v in out.values())
809+
shuffled_df = pd.concat(table.to_pandas() for table in out.values())
810+
pd.testing.assert_frame_equal(
811+
df,
812+
shuffled_df,
813+
check_like=True,
814+
check_exact=True,
815+
)
811816

812817

813818
@gen_cluster(client=True)

0 commit comments

Comments
 (0)