Skip to content

TST: add read_json test #GH32383 #33345

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

Merged
merged 12 commits into from
Apr 12, 2020
Merged

Conversation

BenjaminLiuPenrose
Copy link
Contributor

@BenjaminLiuPenrose BenjaminLiuPenrose commented Apr 6, 2020

@mroeschke mroeschke added the Testing pandas testing functions or related to the test suite label Apr 7, 2020
@jreback jreback added this to the 1.1 milestone Apr 10, 2020
@jreback jreback added the IO JSON read_json, to_json, json_normalize label Apr 10, 2020
@@ -237,6 +237,22 @@ def test_build_series(self):

assert result == expected

def test_read_json_from_to_json_results(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add both of the construction methods from the OP.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, I am confused. Can you elaborate more?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since the second construction will always work, is it necessary to add a test here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about now?

@jreback jreback merged commit 9c31732 into pandas-dev:master Apr 12, 2020
@jreback
Copy link
Contributor

jreback commented Apr 12, 2020

thanks @BenjaminLiuPenrose

@BenjaminLiuPenrose BenjaminLiuPenrose deleted the my_change branch April 14, 2020 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO JSON read_json, to_json, json_normalize Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pd.read_json() leads to a segmentation fault
5 participants