What doesn't work?test_SDL_GetRevision asserts that SDL_GetRevision() either starts with http or is empty, but that is not an API guarantee that SDL provides. As of 2022-11-02, it might have a value like SDL-release-2.24.0-644-g4c704ecfd or SDL-2.24.2-no-vcs (Debian 2.24.2+dfsg-1).
How To Reproduce
Install SDL git main (or Debian package 2.24.2+dfsg-1, which backports the relevant change)
pytest -k test_SDL_GetRevision
Platform (if relevant):
OS: Debian 12 alpha
Python Version: 3.10.8
SDL2 Version: Debian package 2.24.2+dfsg-1, or git main branch during 2.25.x development
Using pysdl2-dll: no
Additional context
The new format happens to start with SDL- (to make it easier to screen-scrape out of an unknown SDL binary with strings(1)), but the exact format was never an API guarantee: it's documented as "not intended to be reliable in any way".
What doesn't work?
test_SDL_GetRevision
asserts thatSDL_GetRevision()
either starts withhttp
or is empty, but that is not an API guarantee that SDL provides. As of 2022-11-02, it might have a value likeSDL-release-2.24.0-644-g4c704ecfd
orSDL-2.24.2-no-vcs (Debian 2.24.2+dfsg-1)
.How To Reproduce
pytest -k test_SDL_GetRevision
Platform (if relevant):
main
branch during 2.25.x developmentAdditional context The new format happens to start with
SDL-
(to make it easier to screen-scrape out of an unknown SDL binary withstrings(1)
), but the exact format was never an API guarantee: it's documented as "not intended to be reliable in any way".