-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CI: Test numpy 1.24 on 3.11 build #51006
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
Why don't we try unpinning numpy on 3.11 instead? That build has no numba IIRC. |
Hm did not consider this, thanks for pointing it out. Makes sense to me |
cc @mroeschke this is ready for a review now, not sure if we want to leave all the ignores in... |
@@ -804,7 +804,7 @@ def test_constructor_floating_data_int_dtype(self, frame_or_series): | |||
# Long-standing behavior (for Series, new in 2.0 for DataFrame) | |||
# has been to ignore the dtype on these; | |||
# not clear if this is what we want long-term | |||
expected = frame_or_series(arr) | |||
# expected = frame_or_series(arr) |
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.
Are these supposed to be commented out?
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.
Yes, they were unused, but the comment above is a bit confusing, that’s why I did not delete them
Outright
pandas/core/arrays/masked.py
Outdated
@@ -428,10 +428,14 @@ def to_numpy( | |||
"for this dtype." | |||
) | |||
# don't pass copy to astype -> always need a copy since we are mutating | |||
data = self._data.astype(dtype) | |||
with warnings.catch_warnings(): | |||
warnings.filterwarnings("ignore") |
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.
It would be good to now what type of warnings these warnings.filterwarnings("ignore")
are
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.
All runtime warnings iirc, but can add
If there are any deprecation or future warnings those should be fixed |
Co-authored-by: Matthew Roeschke <[email protected]>
We are only filtering RuntimeWarnings now. |
Were any of the RuntimeWarnings addressable, or were they specific to the data being passed? |
All data dependent. |
Thanks @phofl |
I think these tests are failing due to numpy being unpinned here
|
Yikes this is weird, I xfailed them but this build started failing because the tests were passing again, so I removed it… |
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.