Closed loonghao closed 5 months ago
Thanks @loonghao for submitting this PR. My main concern right now is speed. Starting a subprocess on Windows usually adds a noticeable overhead.
Could the code first try to os.rename
and only fallback to the subprocess method if it's running on windows and the error is "WinError 5" or something like that?
Also, it would be great if you could add tests to cover all cases covered by the change.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 58.03%. Comparing base (
91db537
) to head (dafcd6c
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@JeanChristopheMorinPerso I have updated the code and added a unit test for this function. Please take another look. Thanks.
Thanks! There is a bug in the code and I think we can add more tests.
@JeanChristopheMorinPerso I have updated the code and added more unit tests. Please take another look.
Thanks.
Thanks @loonghao ! This should hopefully be my last batch of comments.
Thanks @loonghao ! This should hopefully be my last batch of comments.
@JeanChristopheMorinPerso I have made all the changes based on your feedback and addressed all the comments. Could you please take another look. Thanks!
This PR is try to fix #1665