-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Pass check_dtype to assert_extension_array_equal #35750
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
Conversation
i've milestoned this 1.1.1. It does not appear to be a regression but no harm in backporting this. can put in bugfix section of whatsnew |
left._values, right._values, index_values=np.asarray(left.index) | ||
left._values, | ||
right._values, | ||
check_dtype=check_dtype, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Included this also as it seems it can't be wrong to pass check_dtype here, but not certain of how best to test (if at all)
@@ -296,3 +296,10 @@ def test_series_equal_exact_for_nonnumeric(): | |||
tm.assert_series_equal(s1, s3, check_exact=True) | |||
with pytest.raises(AssertionError): | |||
tm.assert_series_equal(s3, s1, check_exact=True) | |||
|
|||
|
|||
def test_assert_series_equal_ignore_extension_dtype_mismatch(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
thanks @dsaxton very nice |
@meeseeksdev backport 1.1.x |
…35773) Co-authored-by: Daniel Saxton <[email protected]>
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff