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

BUG: Fix assert_equal when check_exact=True for non-numeric dtypes #3… #35522

Merged
merged 4 commits into from
Aug 10, 2020

Conversation

ivirshup
Copy link
Contributor

@ivirshup ivirshup commented Aug 3, 2020

assert_series_equal(..., check_exact=True) no longer raises an error when series has a non-numeric dtype. This fixes a bug/ regression introduced in 1.1.0.

I've added a very simple test, but could add more. For instance, there could be a check on assert_frame_equal, but I'm not sure what the desired strategy is for that.

I've left off the whatsnew entry for now since I figure that's the most likely to generate conflicts while this gets reviewed.

@simonjayhawkins simonjayhawkins added the Testing pandas testing functions or related to the test suite label Aug 3, 2020
@simonjayhawkins simonjayhawkins added this to the 1.1.1 milestone Aug 3, 2020
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.

looks good @ivirshup; can you add a note in the 1.1.1 docs (regression section). ping on green.

@ivirshup
Copy link
Contributor Author

ivirshup commented Aug 4, 2020

@jreback, added the release note, and it's kinda green. It looks like one of the jobs timed out though.

@simonjayhawkins
Copy link
Member

It looks like one of the jobs timed out though.

restarted

@jreback
Copy link
Contributor

jreback commented Aug 6, 2020

also pls merge master

@ivirshup
Copy link
Contributor Author

Made those changes. How is it now?

@jreback jreback merged commit 9a8152c into pandas-dev:master Aug 10, 2020
@jreback
Copy link
Contributor

jreback commented Aug 10, 2020

thanks!

@jreback
Copy link
Contributor

jreback commented Aug 10, 2020

@meeseeksdev backport 1.1.x

meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Aug 10, 2020
simonjayhawkins pushed a commit that referenced this pull request Aug 10, 2020
…on-numeric dtypes #3… (#35652)

Co-authored-by: Isaac Virshup <ivirshup@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Testing pandas testing functions or related to the test suite
Projects
None yet
3 participants