Skip to content

Conversation

@cgutman
Copy link
Contributor

@cgutman cgutman commented Mar 17, 2025

PR Description

The test meant to call SDL_FlushEvents() to flush all events, but instead only flushed SDL_FIRSTEVENT. This mistake was harmless until SDL3, which does have queued events at this point that must be flushed for the test expectations to be met.

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 test meant to call SDL_FlushEvents() to flush all events, but
instead only flushed SDL_FIRSTEVENT. This mistake was harmless
until SDL3, which does have queued events at this point that must
be flushed for the test expectations to be met.
@a-hurst
Copy link
Member

a-hurst commented Mar 20, 2025

Good catch, thanks so much for the fix!

Should probably add a runner with sdl2-compat to the CI suite before the next release to catch this kind of stuff.

@a-hurst a-hurst merged commit 7b66f97 into py-sdl:master Mar 20, 2025
33 checks passed
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.

2 participants