Skip to content
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

[python] migrate to pathlib in python tests #4435

Merged
merged 1 commit into from
Jul 4, 2021
Merged

[python] migrate to pathlib in python tests #4435

merged 1 commit into from
Jul 4, 2021

Conversation

StrikerRUS
Copy link
Collaborator

Contributes to #4416.

@@ -1090,7 +1090,7 @@ def test_model_and_local_version_are_picklable_whether_or_not_client_set_explici
assert "client" not in local_model.get_params()
assert getattr(local_model, "client", None) is None

tmp_file = str(tmp_path / "model-1.pkl")
tmp_file = tmp_path / "model-1.pkl"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

joblib has been supporting pathlib.Path since 2016.
https://github.com/joblib/joblib/pull/316/files

@StrikerRUS StrikerRUS force-pushed the pathlib3 branch 2 times, most recently from 0961900 to f4abac5 Compare July 4, 2021 00:40
@StrikerRUS StrikerRUS marked this pull request as ready for review July 4, 2021 01:36
Copy link
Collaborator

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

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

seems ok to me, thanks

@jameslamb jameslamb merged commit cff8044 into master Jul 4, 2021
@jameslamb jameslamb deleted the pathlib3 branch July 4, 2021 04:31
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants