Skip to content

Conversation

mikkas456
Copy link
Contributor

@mikkas456 mikkas456 commented Oct 3, 2025


with tm.ensure_clean("__nat_parse_.csv") as path:
df.to_csv(path)
path = temp_file.parent / "__nat_parse_.csv"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just use temp_file directly (no need to create the __nat_parse_.csv

parser.read_csv(fname, usecols=["col1", "col2", "col3"])
# unlink fails on windows if file handles still point to it
os.unlink(fname)
fname = temp_file.parent / "test.csv"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just use the temp_file directly here too

@mroeschke mroeschke added the Testing pandas testing functions or related to the test suite label Oct 3, 2025
@mroeschke mroeschke added this to the 3.0 milestone Oct 5, 2025
@mroeschke mroeschke merged commit 7be1d10 into pandas-dev:main Oct 5, 2025
42 checks passed
@mroeschke
Copy link
Member

Thanks @mikkas456

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants