-
Notifications
You must be signed in to change notification settings - Fork 452
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
Remove spam in pytest output #6620
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kozlovsky
requested review from
a team,
xoriole and
devos50
and removed request for
a team
December 3, 2021 12:46
retest this please |
devos50
reviewed
Dec 3, 2021
src/tribler-core/tribler_core/components/restapi/restapi_component.py
Outdated
Show resolved
Hide resolved
xoriole
previously approved these changes
Dec 3, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! 👍
kozlovsky
force-pushed
the
fix/warnings_in_tests
branch
4 times, most recently
from
December 3, 2021 15:35
eaee228
to
b1a0355
Compare
…timeout() instead"
…' because it has a __init__ constructor"
…Python 3.9 and will be removed in a subsequent version"
…ted setResizeMode method
kozlovsky
force-pushed
the
fix/warnings_in_tests
branch
from
December 3, 2021 15:47
b1a0355
to
0ff670e
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
retest this please |
1 similar comment
retest this please |
ichorid
approved these changes
Dec 3, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, pytest output has many unimportant warnings from third-party libraries. We can safely ignore all of them. Displaying all these warnings makes understanding pytest results more complex than necessary. It is essential that if we get some new and important warning one day, we can easily miss it in this wall of existing warnings.
In this PR, I update the
pytest.ini
config file to suppress all unimportant warnings and also I suppress warnings in code when necessary.Also, I switched the default logging level in tests from DEBUG to INFO. In most cases, DEBUG output is not helpful, as it mainly consists of spam generated by internal PyQt modules. So, most of the time, it makes test results harder to understand. If necessary, we can always switch it back to DEBUG level later when analyzing some specific test failure.