Skip to content

Commit

Permalink
Update test_multiindex.py
Browse files Browse the repository at this point in the history
  • Loading branch information
galipremsagar authored Sep 20, 2021
1 parent bbb2797 commit ce5f6a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/cudf/cudf/tests/test_multiindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -1576,11 +1576,11 @@ def test_pickle_rountrip_multiIndex(names):
"four": [0.2, 0.1, -10.2],
}
)
actual_df = df.set_index(["one", "two", "three"])
actual_df.index.names = names
expected_df = df.set_index(["one", "two", "three"])
expected_df.index.names = names
local_file = BytesIO()

pickle.dump(actual_df, local_file)
pickle.dump(expected_df, local_file)
local_file.seek(0)
expected_df = pickle.load(local_file)
actual_df = pickle.load(local_file)
assert_eq(expected_df, actual_df)

0 comments on commit ce5f6a7

Please sign in to comment.