py-sdl / py-sdl2

Python ctypes wrapper around SDL2
Other
296 stars 49 forks source link

Unit tests fail with SDL git main (2.25.x) #248

Closed smcv closed 1 year ago

smcv commented 1 year ago

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

Platform (if relevant):

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".