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: assert_series_equal not properly respecting check-dtype #56654

Merged
merged 4 commits into from
Dec 28, 2023

Conversation

phofl
Copy link
Member

@phofl phofl commented Dec 28, 2023

@phofl phofl requested a review from mroeschke December 28, 2023 15:34
@phofl phofl added the Testing pandas testing functions or related to the test suite label Dec 28, 2023
@phofl phofl added this to the 2.2 milestone Dec 28, 2023
@pytest.mark.parametrize("val", [3, 3.5])
def test_ea_and_numpy_no_dtype_check(val, check_exact):
# GH#56651
left = Series([1, 2, val])
Copy link
Member

Choose a reason for hiding this comment

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

Could you also parameterize where this is dtype=object too? I think that should pass this test too?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done, and yes this works too

@phofl phofl merged commit 054b447 into pandas-dev:main Dec 28, 2023
50 checks passed
@phofl phofl deleted the 56651 branch December 28, 2023 21:44
meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Dec 28, 2023
phofl added a commit that referenced this pull request Dec 28, 2023
…erly respecting check-dtype) (#56668)

Backport PR #56654: BUG: assert_series_equal not properly respecting check-dtype

Co-authored-by: Patrick Hoefler <[email protected]>
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
2 participants