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

Disable PyUnicode_DATA on PyPy #4116

Merged
merged 3 commits into from
Apr 26, 2024

Conversation

dmatos2012
Copy link
Contributor

Hi ,
This should close #4040 which caused segfault when PyUnicode_DATA was used on PyPy.

I disabled some tests on PyPy as they reached into data() which I think is correct, but I am also new in this ffi areas, so If there is a test I need to add or something else that im missing, please let me know, glad to help.

@adamreichold adamreichold added this pull request to the merge queue Apr 25, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 25, 2024
@adamreichold
Copy link
Member

Please make sure to adjust the imports in the relevant configurations.

@dmatos2012 dmatos2012 force-pushed the disable-unicode-data-for-pypy branch from 84a6313 to fce6d6a Compare April 25, 2024 21:44
@dmatos2012
Copy link
Contributor Author

dmatos2012 commented Apr 25, 2024

Changed the imports in such a way that I did not have to disable the test test_timezone_from_offset_and_name , even tho its never tested for PyPy in the CI I think. This way it should solve the #[warn(unused_imports)] that was raised in the CI previously @adamreichold

@adamreichold adamreichold added this pull request to the merge queue Apr 26, 2024
Merged via the queue into PyO3:main with commit c66ed29 Apr 26, 2024
42 of 43 checks passed
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.

PyUnicode_DATA and related APIs need to be disabled on PyPy
3 participants