Skip to content

TST/CLN: Remove ensure_clean_path for tmp_dir fixture #48925

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 7, 2022

Conversation

mroeschke
Copy link
Member

xref: #26984

@mroeschke mroeschke added Testing pandas testing functions or related to the test suite IO HDF5 read_hdf, HDFStore Clean labels Oct 3, 2022
@@ -45,7 +32,7 @@ def ensure_clean_store(

# put in the temporary path if we don't have one already
if not len(os.path.dirname(path)):
path = create_tempfile(path)
path = os.path.join(tempfile.gettempdir(), path)
Copy link
Member

Choose a reason for hiding this comment

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

Just asking: Is there a reason for using os instead of pathlib? Would prefer the latter because of platform independency

Copy link
Member Author

Choose a reason for hiding this comment

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

Probably not; this was just copying over code from create_tempfile. Willl use pathlib here

@mroeschke mroeschke added this to the 1.6 milestone Oct 6, 2022
@phofl phofl merged commit 3d6b365 into pandas-dev:main Oct 7, 2022
@phofl
Copy link
Member

phofl commented Oct 7, 2022

thx @mroeschke

@mroeschke mroeschke deleted the tst/rm/ensure_clean_path branch October 7, 2022 16:26
@mroeschke mroeschke modified the milestones: 1.6, 2.0 Oct 13, 2022
noatamir pushed a commit to noatamir/pandas that referenced this pull request Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean IO HDF5 read_hdf, HDFStore 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