-
Notifications
You must be signed in to change notification settings - Fork 89
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
ci: annotate pytest failures on GHA #2448
Conversation
See |
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.
I see, although PyLint doesn't like tests that so obviously would always fail. Perhaps you can trick it like this:
import sys
assert sys.platform == "wacky"
PyLint can't know what all of the platform types are, and that this might actually run on a wacky system someday. We, however, know that it will not. (If you want to be more sure of it, generate a long random name.)
Oh! This was the intention! I had thought these were PyLint failures because PyLint has always been plugged into this system (correlating errors to code in GitHub). Also, PyLint could be smart enough to find out that this assertion would always fail, and that's why I was suggesting a way to fool it. But I misunderstood what was supposed to happen here. |
Ah, I see! Well, if you're happy with this feature, I'll remove the failing test! |
880b780
to
c13b710
Compare
Closes #2405