Skip to content

Fix ascii scrap on sdl2 backend, docs/tests fixes #3473

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ankith26
Copy link
Member

@ankith26 ankith26 commented Jun 5, 2025

As we all know scrap is deprecated, why this PR?

Well, my initial goal was to simply skip all the failing tests on non-windows platforms and call it a day, but then I realised that we broke "text/plain" AKA pygame.SCRAP_TEXT support in pygame-ce when it is trivial to support in our current SDL2 scrap backend (which already supports "text/plain;charset=utf-8").

Of the 5 failing tests, simple updates to our sdl2 scrap backend fixes 2 tests on all non windows platforms. I added skips to the rest on non windows platforms, and also removed an interactive test that was testing for removed x11 backend functionality.

And finally, I updated the docs to reflect reality. The docs currently claim a lot of things we don't support, and this may tempt a few users to use it ignoring the deprecation warnings. Our current scrap status is simply "plain text is supported on all platforms, images/music may work on windows".

@ankith26 ankith26 requested a review from a team as a code owner June 5, 2025 09:24
@ankith26 ankith26 force-pushed the ankith26-scrap-fixes branch from 7e91c13 to 7e8d9e5 Compare June 5, 2025 09:45
@ankith26 ankith26 added this to the 2.5.6 milestone Jun 7, 2025
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.

1 participant