-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
read_msgpack returns garbage for non-existing files in python2 #15296
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
Comments
I recall this being fixed a little while back. Are you sure you are running with 0.19.2?
|
Yes, definitely 0.19.2. It seems to be fixed only in python 3. |
ahh, that is possible (must not be well tested) want to add a test and fix? I think we are doing a better job of this now-a-days in things like yeah I see this doesn't use |
This is a dupe of #12225 (closed that one) - issue is that in python 2 the string is interpreted as bytes. |
…Python 2 (pandas-dev#16523) * TST: Add tests for trying to read non-existent files pandas-dev#15296 * BUG: Fix passing non-existant file to read_msgpack pandas-dev#15296 * TST: Fix io.test_common.test_read_non_existant for external modules * CLN: Import FileNotFoundError in tests/io/test_common.py
…Python 2 (pandas-dev#16523) * TST: Add tests for trying to read non-existent files pandas-dev#15296 * BUG: Fix passing non-existant file to read_msgpack pandas-dev#15296 * TST: Fix io.test_common.test_read_non_existant for external modules * CLN: Import FileNotFoundError in tests/io/test_common.py
Code Sample, a copy-pastable example if possible
That file does not exist.
The same code with the same version on python 3 correctly raises an exception.
Problem description
Reading a non existing file returns a list of integers instead of failing if pandas is used in python 2. This makes detecting error quite hard.
Expected Output
An exception.
Output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: