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

Fix spam-esque warnings in our unit tests #3275

Open
8 tasks
MyreMylar opened this issue Dec 30, 2024 · 0 comments
Open
8 tasks

Fix spam-esque warnings in our unit tests #3275

MyreMylar opened this issue Dec 30, 2024 · 0 comments
Labels
tests tests (module)

Comments

@MyreMylar
Copy link
Member

I've noticed when running the tests locally that we've built up some spammy warnings, particularly deprecation warnings from our own code that is making it harder to spot other warnings that we perhaps should address.

I've been running:

pytest test -s

to see these outputted into the console.

#3274 is an example of a PR to fix these issues in one of the test modules.

In general, where we are calling warnings/code that we know generates warnings deliberately we can wrap them in a with context block to acknowledge that is the intention. Where old code is called incidentally/historically we may be able to replace it with new code.

Other test modules with this issue:

  • scrap_test
  • color_test
  • display_test
  • font_test/ftfont_test (the same warning in both needs wrapping)
  • pixelcopy_test
  • sndarray_test
  • surface_test
  • window_test

Anyone, please fell free to fix one of these modules so we can tick them off.

@MyreMylar MyreMylar changed the title Fix spam-esque Deprecation warnings in our unit tests Fix spam-esque warnings in our unit tests Dec 30, 2024
@bilhox bilhox added the tests tests (module) label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests tests (module)
Projects
None yet
Development

No branches or pull requests

2 participants