Skip to content

Commit 280cf52

Browse files
Use tmp_path instead of tmp_dir2
1 parent 85bd8c6 commit 280cf52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pins/tests/test_drivers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,22 +84,22 @@ def test_driver_roundtrip(tmp_path: Path, type_):
8484
"parquet",
8585
],
8686
)
87-
def test_driver_polars_roundtrip(tmp_dir2, type_):
87+
def test_driver_polars_roundtrip(tmp_path, type_):
8888
import polars as pl
8989

9090
df = pl.DataFrame({"x": [1, 2, 3]})
9191

9292
fname = "some_df"
9393
full_file = f"{fname}.{type_}"
9494

95-
p_obj = tmp_dir2 / fname
95+
p_obj = tmp_path / fname
9696
res_fname = save_data(df, p_obj, type_)
9797

9898
assert Path(res_fname).name == full_file
9999

100100
meta = MetaRaw(full_file, type_, "my_pin")
101101
pandas_df = load_data(
102-
meta, fsspec.filesystem("file"), tmp_dir2, allow_pickle_read=True
102+
meta, fsspec.filesystem("file"), tmp_path, allow_pickle_read=True
103103
)
104104

105105
# Convert from pandas to polars

0 commit comments

Comments
 (0)