Fix: pytest warning - GioUnix was imported without specifying version - #30535
Conversation
|
Hi @QuLogic, Thanks for taking the time to review this and for your insightful comments. I completely agree with your assessment that this warning only becomes an error under specific conditions (PyGObject 3.54 + warnings as errors). You're right that most end-users may not encounter this. However, for developers who do run into this (like in our own CI pipeline or anyone who enables stricter warnings), the failing tests create immediate friction. It generates unnecessary noise and notifications, and can cause contributors to spend time wondering if they've introduced a new bug. My intention with this PR is to provide a quick, pragmatic fix to improve the immediate developer experience and keep our test suite clean. It's meant as a "stopgap" measure to resolve the current annoyance. I'm definitely open to a more comprehensive solution that addresses any other modules with similar import issues, as you alluded to. Perhaps we can merge this simple fix for now to solve the immediate problem, and I (or someone else) can open a new issue to track the larger task of auditing and applying more explicit version requirements across the board? What do you think of this approach? |
timhoffm
left a comment
There was a problem hiding this comment.
This is a reasonable stopgap.

PR summary
Addresses issue #30525
PR checklist