-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
assert_frame_not_equal
does not raise when input types are different
#18401
Comments
I see why it's happening... of course technically the frames aren't equal as they are of different types, heh. But that's not what the function is testing, so I agree that it should raise here ;) |
🤣 you are not wrong Fix incoming! |
Ahh, already committed one 😅 |
Very fast! Appreciate the quick turnaround! |
Was this possible to hit? There is no lazy Series. |
Yes, as you can hit it on any mismatched type... from polars.testing import assert_series_not_equal
import polars as pl
s1 = pl.Series([1,2,3])
s2 = "I am a potato"
# does not (currently) raise about the mismatched/invalid input
assert_series_not_equal(s1, s2) |
Checks
Reproducible example
Log output
No response
Issue description
assert_frame_not_equal
should raise when the types are not the sameExpected behavior
It should raise the same way this does
Installed versions
main branch
The text was updated successfully, but these errors were encountered: