8000 Account for mixer.init()/pre_init() returning more channels than asked by MyreMylar · Pull Request #2372 · pygame/pygame · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Account for mixer.init()/pre_init() returning more channels than asked #2372

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

Merged
merged 1 commit into from
Dec 2, 2020

Conversation

MyreMylar
Copy link
Contributor

The number of channels requested in mixer.init() is a request and more channels may be returned than asked for. This PR changes the tests to reflect that with an assertEqual() swapped out for assertGreaterEqual(). With this PR the test pass locally again on my version of windows. Returning more channels than asked for can't really be considered a failure.

fixes #2364

The number of channels requested in mixer.init() is a request and
more channels may be returned than asked for. This PR changes the
tests to reflect that with a assertEqual() swapped out for
assertGreaterEqual().
Copy link
Member
@illume illume left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 good fix, thanks.

@illume illume merged commit fd55117 into pygame:main Dec 2, 2020
@illume illume added the mixer pygame.mixer label Dec 24, 2020
@illume illume added this to the 2.0.1 milestone Aug 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mixer pygame.mixer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failing mixer module tests
2 participants
0