Skip to content

TST/REF: collect tests by method #37573

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 2 commits into from
Nov 2, 2020
Merged

Conversation

jbrockmendel
Copy link
Member

This is something of an outlier in that it collects iter/iteritems/iterrows/itertuples into a test_iteration file. I think this is a sufficiently clear grouping, akin to test_arithmetic/test_reductions/test_unary, LMK if you disagree.

@jreback jreback added the Testing pandas testing functions or related to the test suite label Nov 2, 2020
@jreback jreback added this to the 1.2 milestone Nov 2, 2020
tm.assert_series_equal(unp_series, string_series)


def _pickle_roundtrip(obj):
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 remove in favor of tm.round_trip_pickle

Copy link
Member Author

Choose a reason for hiding this comment

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

i thought about this but held off because they're not quite the same. tm.round_trip_pickle calls pd.to_pickle whereas this calls obj.to_pickle. do we need to care about the difference?

Copy link
Contributor

Choose a reason for hiding this comment

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

you are welcome to add direct pickle callas in round_trip_pickle

they are the same

except that read_pickle can read from older versions

Copy link
Member Author

Choose a reason for hiding this comment

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

will update

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated + greenish

@jreback jreback merged commit 8a9df6d into pandas-dev:master Nov 2, 2020
@jbrockmendel jbrockmendel deleted the tst-iter branch November 2, 2020 14:29
kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
* TST/REF: collect tests by method

* use round_trip_pickle
ukarroum pushed a commit to ukarroum/pandas that referenced this pull request Nov 2, 2020
* TST/REF: collect tests by method

* use round_trip_pickle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants