-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Read hdf does not close store #25863
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
Read hdf does not close store #25863
Conversation
pandas/tests/io/test_pytables.py
Outdated
df = pd.DataFrame({'a': range(2), 'b': range(2)}) | ||
df.to_hdf(path, 'k1') | ||
|
||
pytest.raises(KeyError, pd.read_hdf, path, 'k2') |
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.
this is not an accepted format any longer, use the context manager
with pytest.raises(....):
...
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.
updated 244cab4 . But with form pytest.raises(KeyError, ...)
I followed the codestyle in this test file. But now I see some STY issues, that are trying to unify to context manager style 👍
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.
yep this happens to be the last file - i think it’s fixed in another PR
Codecov Report
@@ Coverage Diff @@
## master #25863 +/- ##
=======================================
Coverage 91.47% 91.47%
=======================================
Files 173 173
Lines 52872 52872
=======================================
Hits 48364 48364
Misses 4508 4508
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #25863 +/- ##
==========================================
- Coverage 91.81% 91.8% -0.01%
==========================================
Files 175 175
Lines 52578 52578
==========================================
- Hits 48273 48269 -4
- Misses 4305 4309 +4
Continue to review full report at Codecov.
|
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.
Minor suggestion to improve whatsnew but otherwise lgtm
Co-Authored-By: rbenes <[email protected]>
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 @jreback
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.
trivial doc-update. ping on green.
…ad_hdf_does_not_close_store
Thanks @rbenes ! |
git diff upstream/master -u -- "*.py" | flake8 --diff