Add unit test: display.gl_set_attribute() #1748
Comments
Hello, may I be assigned this issue? |
Assigned! |
If this issue is still open and not being worked on, could I have it assigned to me? Thanks! |
Assigned! Good luck. |
Hello, can I be assigned as well? |
Assigned :) |
Hello I just want to say that links for "code to be tested" and "test stub" are not pointing on the right part in code (instead of display.gl_set_attribute() they are pointing on get_surface() ) and it is misleading. It is probably because the code has changed since then. |
Updated first post |
Yeah this was my fault for using links instead of the GitHub functionality to point at a chunk of code for all time. |
Hello, can I be assigned as well please ? |
Hi, can I be assigned to this? I'd like to take a crack at it |
This new PR kind of addresses this. It's in progress here: #2375 |
Is the issue resolved? |
No, I guess. The PR linked above, was for gl_get_attribute, and there haven’t been any tests written for gl_set_attribute yet |
This function needs a unit test.
Guide to how to contribute to an open source project on GitHub.
Test stub: https://github.com/pygame/pygame/blob/main/test/display_test.py#L255-L274
Docs: https://www.pygame.org/docs/ref/display.html#pygame.display.gl_set_attribute
Code to be tested: https://github.com/pygame/pygame/blob/main/src_c/display.c#L774-L787
The text was updated successfully, but these errors were encountered: