-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
CLN: resource warnings #13932
Comments
@gfyoung an odd one here.
|
That's due to a As for the other |
these only happen in PY3 fyi. Maybe its more strict. |
Yes, it's because that warning was introduced in Python 3. Again, not 100% sure why they are occurring, since that implies that the file object is getting deleted before it is closed, and we're using |
closes #13932 Author: agraboso <agraboso@gmail.com> Closes #13940 from agraboso/fix-13932 and squashes the following commits: 3fa7d25 [agraboso] Close open files in TextFileReader upon StopIteration 6592c73 [agraboso] Do not acquire list as file handler to close 7aa5184 [agraboso] Properly close opened files in XportReader and SAS7BDATReader 240383c [agraboso] Properly close opened files in two tests 52d1073 [agraboso] Fix linting error 39dcd99 [agraboso] Fix rebase 75fc34d [agraboso] Make try/except blocks in StataReader.read as small as possible 812e6ec [agraboso] Fix long line c7e9c9c [agraboso] On close, CParserWrapper must call self._reader.close() 99e16dd [agraboso] Fix whatsnew entries 30b61e6 [agraboso] Properly close opened files in StataWriter 3b0f25f [agraboso] Properly close opened files in StataReader 1e39a5e [agraboso] Properly close opened files in three tests d759156 [agraboso] BUG: properly close files opened by parsers
https://travis-ci.org/pydata/pandas/jobs/150623749
so we have warnings enabled on the 3.5/dev build. Lots of resource warnings....
The text was updated successfully, but these errors were encountered: