-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
REGR: to_stata tried to remove file before closing it #39202
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
this is a regression (i think so?). put a note on 1.2.1 |
yes, you are right! I extended a test to make sure that the file doesn't exists and added a whatsnew entry. |
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.
excellent ping on greenish
The failing test will not fail in 'real life': the test uses |
also some failures |
I think I'm not sure but I could imagine that |
we should remove it if it's corrupt - however this might be hard to tell so ok leaving it |
@jreback green'ish The new |
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.
lgtm comment, ping on green
@jreback green'ish, failed tests seem to be unrelated |
yep, known flaky test and pre-commit issue |
one question before this is merged. How public-ish is tm.ensure_clean? |
its not |
thanks @twoertwein |
@meeseeksdev backport 1.2.x |
This comment has been minimized.
This comment has been minimized.
@twoertwein would you mind putting up the backport PR |
Co-authored-by: Simon Hawkins <[email protected]>
Spin-off from #39047:
If an error occurred during
to_stata
, the code tried to first remove the file and then close the file handle: