Skip to content

Commit f815da9

Browse files
committed
Directly using temp_file instead of constructing path
1 parent 34cd7e7 commit f815da9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/tests/io/parser/test_parse_dates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def test_nat_parse(all_parsers, temp_file):
9797
)
9898
df.iloc[3:6, :] = np.nan
9999

100-
path = temp_file.parent / "__nat_parse_.csv"
100+
path = temp_file
101101
df.to_csv(path)
102102

103103
result = parser.read_csv(path, index_col=0, parse_dates=["B"])

pandas/tests/io/parser/test_unsupported.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def test_close_file_handle_on_invalid_usecols(all_parsers, temp_file):
176176
# Raises pyarrow.lib.ArrowKeyError
177177
pytest.skip(reason="https://github.com/apache/arrow/issues/38676")
178178

179-
fname = temp_file.parent / "test.csv"
179+
fname = temp_file
180180
Path(fname).write_text("col1,col2\na,b\n1,2", encoding="utf-8")
181181
with tm.assert_produces_warning(False):
182182
with pytest.raises(error, match="col3"):

0 commit comments

Comments
 (0)