Skip to content

Conversation

@zhangbowen-coder
Copy link
Contributor

Every function ensure_clean in the file /pandas/tests/io/test_common.py
and /pandas/tests/io/pytables/test_store.py has been replaced.

Assists #62435

…mmon.py

 and /pandas/tests/io/pytables/test_store.py has been replaced.
@zhangbowen-coder
Copy link
Contributor Author

Assists #62435

with tm.ensure_clean() as path:
file = Path(path)
file.write_bytes(content)
file = Path(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.

temp_file should already be a Path

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for your correction, I have never used pytest fixtures before, so I make this mistake,I will fix it today and update this PR.

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

Thanks @zhangbowen-coder

@zhangbowen-coder
Copy link
Contributor Author

Thank you for your review and correction, too. @mroeschke

@zhangbowen-coder zhangbowen-coder deleted the zbw-working branch October 30, 2025 16:02
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.

8 participants