Skip to content

Commit

Permalink
TEST-#6705: Don't compare 'pkl' files (#6706)
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoly Myachev <[email protected]>
  • Loading branch information
anmyachev authored Nov 6, 2023
1 parent 7a9415e commit ee3e298
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions modin/pandas/test/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -3061,14 +3061,14 @@ def test_read_pickle(self, make_pickle_file):
)

def test_to_pickle(self, tmp_path):
modin_df, pandas_df = create_test_dfs(TEST_DATA)
eval_to_file(
tmp_path,
modin_obj=modin_df,
pandas_obj=pandas_df,
fn="to_pickle",
extension="pkl",
)
modin_df, _ = create_test_dfs(TEST_DATA)

unique_filename_modin = get_unique_filename(extension="pkl", data_dir=tmp_path)

modin_df.to_pickle(unique_filename_modin)
recreated_modin_df = pd.read_pickle(unique_filename_modin)

df_equals(modin_df, recreated_modin_df)


@pytest.mark.filterwarnings(default_to_pandas_ignore_string)
Expand Down

0 comments on commit ee3e298

Please sign in to comment.