Skip to content

Commit

Permalink
Remove unnecessary pickle file generated while testing (#732)
Browse files Browse the repository at this point in the history
  • Loading branch information
fealho authored Oct 25, 2023
1 parent 8d6ec14 commit 2ee0077
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/transformers/test_categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,9 +452,9 @@ def test_one_hot_doesnt_warn(tmp_path):
# Run
ohe.fit(data, 'column_name')
tmp = tmp_path / 'ohe.pkl'
with open(tmp.name, 'wb') as f:
with open(tmp, 'wb') as f:
pickle.dump(ohe, f)
with open(tmp.name, 'rb') as f:
with open(tmp, 'rb') as f:
ohe_loaded = pickle.load(f)

# Assert
Expand Down

0 comments on commit 2ee0077

Please sign in to comment.