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

Do not repeatedly save to the same path #8512

Merged
merged 2 commits into from
Oct 29, 2024
Merged

Conversation

radarhere
Copy link
Member

tonybaloney/pytest-freethreaded#11 noted a segfault that can occur under free-threading with Tests/test_file_jpeg.py::test_qtables. I can replicate this with --require-gil-disabled - https://github.com/radarhere/Pillow/actions/runs/11572743510

Changing the test to save to a BytesIO instance rather than writing repeatedly to the same temporary path fixes this specific test - https://github.com/radarhere/Pillow/actions/runs/11572819452

Tests/test_file_jpeg.py Outdated Show resolved Hide resolved
Co-authored-by: Hugo van Kemenade <[email protected]>
@hugovk hugovk merged commit 16372dd into python-pillow:main Oct 29, 2024
45 of 46 checks passed
@radarhere radarhere deleted the qtables branch October 29, 2024 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants