-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
ENH: Fix Python 3.13 test failures & enable CI #59065
Conversation
x-ref pandas-dev#58734 Co-authored-by: Thomas Li <47963215+lithomas1@users.noreply.github.com>
7241c45
to
06b743a
Compare
@lithomas1 |
if is_period and not hasattr(result, "_period_dtype_code"): | ||
try: | ||
has_period_dtype_code = hasattr(result, "_period_dtype_code") | ||
except ValueError: |
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.
What's the error here?
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.
The error is that the _period_dtype_code
property raises ValueError
in CustomBusinessDay
. In 3.12 and older, Cython was silently ignoring exceptions and hasattr
was returning False
. In 3.13 the exception is not ignored anymore. More info on cython/cython#6251 (comment).
I'm marking as ready for review, since I don't think there's any more outstanding issues for 3.13. |
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.
This LGTM pending green.
Thanks for picking this up!
Thanks @lysnikolaou and @lithomas1 |
* ENH: Fix Python 3.13 test failures & enable CI x-ref pandas-dev#58734 Co-authored-by: Thomas Li <47963215+lithomas1@users.noreply.github.com> * Cast npy_intp to int to fix Windows CI --------- Co-authored-by: Thomas Li <47963215+lithomas1@users.noreply.github.com>
* ENH: Fix Python 3.13 test failures & enable CI x-ref pandas-dev#58734 Co-authored-by: Thomas Li <47963215+lithomas1@users.noreply.github.com> * Cast npy_intp to int to fix Windows CI --------- Co-authored-by: Thomas Li <47963215+lithomas1@users.noreply.github.com>
* ENH: Fix Python 3.13 test failures & enable CI x-ref pandas-dev#58734 Co-authored-by: Thomas Li <47963215+lithomas1@users.noreply.github.com> * Cast npy_intp to int to fix Windows CI --------- Co-authored-by: Thomas Li <47963215+lithomas1@users.noreply.github.com>
@meeseeksdev backport 2.2.x |
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free to suggest an improvement. |
* Backport PR #59065: ENH: Fix Python 3.13 test failures & enable CI * Remove deprecated plot_date calls (#58484) * Remove deprecated plot_date calls These were deprecated in Matplotlib 3.9. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> (cherry picked from commit c9bc480) * Pick out fastparquet xfails for green CI * pin pytz to fix test_arrays.py * more workflow tweaks for pytz and Python 3.13 * fix typing and tune tests for copy on write * remove WASM stuff * more arm skips * go for green --------- Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
x-ref #58734
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.