-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
Conversation
pandas/tests/io/pytables/common.py
Outdated
@@ -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) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
thx @mroeschke |
xref: #26984