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

Make pytest raise warnings as errors by default #39829

Merged
merged 2 commits into from
May 10, 2023

Conversation

gsnedders
Copy link
Member

No description provided.

@gsnedders gsnedders requested a review from jgraham May 3, 2023 17:55
@wpt-pr-bot wpt-pr-bot added infra pytest.ini wpt wptrunner The automated test runner, commonly called through ./wpt run conftest.py labels May 3, 2023
Comment on lines +19 to +20
# https://github.com/web-platform-tests/wpt/issues/39366
always:The metaschema specified by \$schema was not found\. Using the latest draft to validate, but this will raise an error in the future\.:DeprecationWarning
Copy link
Member Author

Choose a reason for hiding this comment

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

Comment on lines +21 to +22
# https://github.com/web-platform-tests/wpt/issues/39359
always:'cgi' is deprecated and slated for removal in Python 3:DeprecationWarning
Copy link
Member Author

Choose a reason for hiding this comment

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

Comment on lines +23 to +24
# https://github.com/web-platform-tests/wpt/issues/39373
always:the imp module is deprecated in favour of importlib:DeprecationWarning
Copy link
Member Author

Choose a reason for hiding this comment

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

Comment on lines +25 to +26
# https://github.com/web-platform-tests/wpt/issues/39827
always:pkg_resources is deprecated as an API:DeprecationWarning
Copy link
Member Author

Choose a reason for hiding this comment

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

@wpt-pr-bot wpt-pr-bot added the wave label May 4, 2023
Copy link
Contributor

@jgraham jgraham left a comment

Choose a reason for hiding this comment

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

I'm still mildly concerned that this might break people trying to run tests in their vendored copies, but I hope that doesn't happen and we can revert the change to actually make the tests error on warning if it does. So as long as we still see the warnings in the output, this seems OK.

@gsnedders gsnedders merged commit 5712247 into web-platform-tests:master May 10, 2023
@gsnedders gsnedders deleted the test-cleanup branch May 10, 2023 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conftest.py infra mozilla:gecko-blocked pytest.ini wave wpt wptrunner The automated test runner, commonly called through ./wpt run
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants