Skip to content

datetime64 series and dataframe test GH#28273 #52217

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

Closed
wants to merge 1 commit into from

Conversation

liang3zy22
Copy link
Contributor

@liang3zy22 liang3zy22 commented Mar 26, 2023

I used main codes to verify the GH28273. Unlike the original codes, the series and data frame types are same. So my codes just test its current behavior.

@liang3zy22 liang3zy22 force-pushed the gh28273 branch 2 times, most recently from ade38fd to 6c29ec2 Compare March 27, 2023 12:04
@@ -1221,6 +1221,12 @@ def test_dt64_mul_div_numeric_invalid(self, one, dt64_series, box_with_array):
with pytest.raises(TypeError, match=msg):
one / obj

def test_dt64_series_dataframe(self):
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this would hit the line of code explained in the issue, it would need to hit a json parsing path

@mroeschke mroeschke added Testing pandas testing functions or related to the test suite IO JSON read_json, to_json, json_normalize labels Mar 27, 2023
@liang3zy22
Copy link
Contributor Author

liang3zy22 commented Mar 28, 2023

I have tested the ujson.{decode,encode} with np.datetime64. I can't find a method to decode the result of encode to datetime64. So I compare the decode and encode result directly.

@mroeschke
Copy link
Member

Actually, turns out this code doesn't exist in the current code base so it no longer needs testing. Closing but thanks for attempting to add a test for this

@mroeschke mroeschke closed this Mar 28, 2023
@liang3zy22 liang3zy22 deleted the gh28273 branch March 28, 2023 23:22
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.

Address Untested to_json Extension Module Code
2 participants