You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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".
The text was updated successfully, but these errors were encountered:
smcv
added a commit
to smcv/py-sdl2
that referenced
this issue
Nov 2, 2022
The default format is going to change in 2.25.x, and in git main it
currently starts with "SDL-".
SDL specifically documents the result of this function as "not intended
to be reliable in any way", so it seems wrong to have pysdl2's tests fail
whenever the format changes. To address that, turn unexpected formats
into an xfail, so that they're flagged as something to investigate but
do not make the unit tests fail when used as a QA gate.
Resolves: py-sdl#248
Signed-off-by: Simon McVittie <smcv@collabora.com>
The default format is going to change in 2.25.x, and in git main it
currently starts with "SDL-".
SDL specifically documents the result of this function as "not intended
to be reliable in any way", so it seems wrong to have pysdl2's tests fail
whenever the format changes. To address that, turn unexpected formats
into an xfail, so that they're flagged as something to investigate but
do not make the unit tests fail when used as a QA gate.
Closes: py-sdl#248
Signed-off-by: Simon McVittie <smcv@collabora.com>
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".The text was updated successfully, but these errors were encountered: