Skip to content

Conversation

pandeconscious
Copy link

@pandeconscious pandeconscious commented Sep 26, 2025

@pandeconscious pandeconscious changed the title TST: Replace ensure_clean utility function TST: Replace ensure_clean utility function with the temp_file pytest fixture #62435 Sep 26, 2025
@pandeconscious pandeconscious changed the title TST: Replace ensure_clean utility function with the temp_file pytest fixture #62435 TST: Replace ensure_clean utility function with the temp_file pytest fixture Sep 26, 2025
@pandeconscious pandeconscious changed the title TST: Replace ensure_clean utility function with the temp_file pytest fixture TST: Replace ensure_clean utility function with the temp_file pytest fixture #62435 Sep 26, 2025
@pandeconscious pandeconscious changed the title TST: Replace ensure_clean utility function with the temp_file pytest fixture #62435 TST: Assist Replace ensure_clean utility function with the temp_file pytest fixture #62435 Sep 26, 2025
with tm.ensure_clean("__tmp_to_csv_moar__") as path:
df.to_csv(path, encoding="utf8", chunksize=chunksize)
recons = self.read_csv(path, **kwargs)
path = str(temp_file)
Copy link
Member

Choose a reason for hiding this comment

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

Generally, could you try using temp_file as an argument instead of converting to a string when doing these modifications, unless the test appears to explicitly be testing a string argument?

@mroeschke mroeschke added the Testing pandas testing functions or related to the test suite label Sep 29, 2025
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