Skip to content

Commit 8294e47

Browse files
Use tmp_path instead of tmp_dir2
1 parent d682808 commit 8294e47

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
@@ -85,22 +85,22 @@ def test_driver_roundtrip(tmp_path: Path, type_):
8585
"parquet",
8686
],
8787
)
88-
def test_driver_polars_roundtrip(tmp_dir2, type_):
88+
def test_driver_polars_roundtrip(tmp_path, type_):
8989
import polars as pl
9090

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

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

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

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

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

106106
# Convert from pandas to polars

0 commit comments

Comments
 (0)