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

Fix Traits build error on Python 3.13 #1767

Merged
merged 3 commits into from
Mar 4, 2024
Merged

Conversation

mdickinson
Copy link
Member

@mdickinson mdickinson commented Feb 1, 2024

This PR updates the core test workflow to run tests on the in-development 3.13 version of Python, and fixes use of the now-removed Py_TRASHCAN_SAFE_BEGIN/END macros.

Fixes #1765.

This PR updates the core test workflow to run tests on the in-development 3.13 version of Python.
@mdickinson mdickinson force-pushed the dev/core-tests-on-py313 branch from 41895c0 to 58d4ea8 Compare February 1, 2024 13:56
@mdickinson mdickinson marked this pull request as draft February 1, 2024 13:56
@mdickinson mdickinson changed the title Run core test suite on Python 3.13 Fix Traits build error on Python 3.13 Feb 1, 2024
@mdickinson mdickinson marked this pull request as ready for review February 1, 2024 16:16
@@ -808,10 +808,18 @@ static void
has_traits_dealloc(has_traits_object *obj)
{
PyObject_GC_UnTrack(obj);
#if PY_VERSION_HEX < 0x03080000
Copy link
Member Author

Choose a reason for hiding this comment

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

We can simplify this if we drop support for Python 3.7, but doing that in this PR would be unnecessarily complicated. I've opened a separate issue #1769.

Copy link
Contributor

@corranwebster corranwebster left a comment

Choose a reason for hiding this comment

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

LGTM

@mdickinson mdickinson merged commit a20f215 into main Mar 4, 2024
34 checks passed
@mdickinson mdickinson deleted the dev/core-tests-on-py313 branch March 4, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fails to build with python 3.13
2 participants