Skip to content
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

TST: tighten assert_index_equal calls #38054

Merged
merged 4 commits into from
Nov 26, 2020

Conversation

jbrockmendel
Copy link
Member

No description provided.

Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

i don't think it would pass exact='equiv' as that's the default. I think this is confusing. Unless you want to changeequiv=True` as the default

@jbrockmendel
Copy link
Member Author

Unless you want to change equiv=True as the default

That is what I want, but last time I changed a default kwarg in one of these it caused a backlash, so im taking it slow. This is basically all the changes that we would have to make to continue passing if we did change the default (along with #38034, #38028, and some other RangeIndex tinkering that hasn't been pushed yet)

@jreback jreback added Index Related to the Index class or subclasses Testing pandas testing functions or related to the test suite labels Nov 26, 2020
@jreback
Copy link
Contributor

jreback commented Nov 26, 2020

Unless you want to change equiv=True as the default

That is what I want, but last time I changed a default kwarg in one of these it caused a backlash, so im taking it slow. This is basically all the changes that we would have to make to continue passing if we did change the default (along with #38034, #38028, and some other RangeIndex tinkering that hasn't been pushed yet)

ok fair, though again i still wouldn't actually specify the default and rather the exception no? we will like have to deprecate this change in any event (maybe that's just easier)? then specifying this is fine.

@jbrockmendel
Copy link
Member Author

i still wouldn't actually specify the default and rather the exception no?

if/when we do change the default we'll need to go through and change these all then. in the interim this is just being explicit about which places it makes difference

@jreback
Copy link
Contributor

jreback commented Nov 26, 2020

i still wouldn't actually specify the default and rather the exception no?

if/when we do change the default we'll need to go through and change these all then. in the interim this is just being explicit about which places it makes difference

ok, problem is that new tests won't have this, i guess its not a big deal, but going to have a consistency nightmare, why are you against leaving off the exact='equiv' entirely?

@jbrockmendel
Copy link
Member Author

why are you against leaving off the exact='equiv' entirely?

not looking forward to re-doing the process of tracking down which ones need it when the default is changed. not a big deal. will revert.

@jreback
Copy link
Contributor

jreback commented Nov 26, 2020

why are you against leaving off the exact='equiv' entirely?

not looking forward to re-doing the process of tracking down which ones need it when the default is changed. not a big deal. will revert.

as an alternative, can you add as a comment after the call?

@jbrockmendel
Copy link
Member Author

just reverted them

@jreback jreback added this to the 1.2 milestone Nov 26, 2020
@jreback jreback merged commit 66c3c6f into pandas-dev:master Nov 26, 2020
@jbrockmendel jbrockmendel deleted the bug-rng-diff branch November 26, 2020 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Index Related to the Index class or subclasses 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