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

version_test: Don't assert that SDL_GetRevision() starts with http #249

Merged
merged 1 commit into from
Nov 2, 2022

Conversation

smcv
Copy link
Contributor

@smcv smcv commented 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.

Closes: #248

Merge Checklist

  • the PR has been reviewed and all comments are resolved
  • all CI checks pass
  • (if applicable): the PR description includes the phrase closes #<issue-number> to automatically close an issue
  • (if applicable): bug fixes, new features, or API changes are documented in news.rst

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>
@a-hurst a-hurst merged commit ffa8853 into py-sdl:master Nov 2, 2022
@a-hurst
Copy link
Member

a-hurst commented Nov 2, 2022

Good catch, thanks as always!

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.

Unit tests fail with SDL git main (2.25.x)
2 participants