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

Added a unit test for display.flip() #2054

Merged
merged 4 commits into from Aug 30, 2020
Merged

Added a unit test for display.flip() #2054

merged 4 commits into from Aug 30, 2020

Conversation

amipy
Copy link
Contributor

@amipy amipy commented Aug 23, 2020

This is a unit test for display.flip().
I was unable to come up with a method to test the last error condition in the code, because that condition involves SDL giving an error not caught by pygame, and I do no know how to do that.

Signed-off-by: Alex Ilves <mearepoo@gmail.com>
@amipy
Copy link
Contributor Author

amipy commented Aug 23, 2020

Here is the issue I wrote this for.
#1742

@MightyJosip MightyJosip linked an issue Aug 24, 2020 that may be closed by this pull request
@MightyJosip
Copy link
Contributor

This unit test should be part of this file

@amipy
Copy link
Contributor Author

amipy commented Aug 24, 2020

Alright, I moved it to the display_test file.

@amipy
Copy link
Contributor Author

amipy commented Aug 24, 2020

There was an error in my test, so I fixed it.

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.

Thanks 🎉

@illume illume merged commit d017272 into pygame:master Aug 30, 2020
@illume illume added the display pygame.display label Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
display pygame.display
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add unit test: display.flip()
3 participants