Skip to content

Conversation

@tales-aparecida
Copy link

@tales-aparecida tales-aparecida commented Jul 10, 2025

The unit tests are still failing due to handling stderr directly. As a patchwork, ignore more warnings until we rewrite the tests.

Warnings from pkg_resource are causing unit tests to fail,
due to they handling stderr directly.
As a patchwork, ignore warnings until we rewrite the tests.

Signed-off-by: Tales da Aparecida <tales.aparecida@redhat.com>
@tales-aparecida tales-aparecida changed the title WIP: pytest: ignore pkg_resource warnings pytest: ignore pkg_resource warnings Jul 10, 2025
@tales-aparecida tales-aparecida marked this pull request as ready for review July 10, 2025 15:33
@tales-aparecida
Copy link
Author

Idk why, but PYTHONWARNINGS was necessary. Locally I can reproduce UserWarning getting ignored with just the pytest.ini line, but the pipeline was still failing

Copy link
Member

@nuclearcat nuclearcat left a comment

Choose a reason for hiding this comment

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

Thanks for working on this!
Looks good, i wonder if this warning is fixable as well, i will check that soon.

@nuclearcat nuclearcat merged commit f077b0c into kernelci:main Jul 11, 2025
5 of 6 checks passed
@tales-aparecida
Copy link
Author

Looks good, i wonder if this warning is fixable as well, i will check that soon.

I think it will fix itself soon enough, I've seen plenty of google projects with open tickets about this warning 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants