-
Notifications
You must be signed in to change notification settings - Fork 58
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
WIP: skip pytest_ignore_collect with -k/-m #136
WIP: skip pytest_ignore_collect with -k/-m #136
Conversation
@@ -150,6 +150,10 @@ def __init__(self, config, testmon_data): | |||
self.f_to_ignore = self.testmon_data.stable_files | |||
if self.config.getoption('tlf'): | |||
self.f_to_ignore -= self.testmon_data.f_last_failed | |||
self.has_possibly_filtering_args = any( | |||
x for x in config._origargs |
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.
Not a public attribute: pytest-dev/pytest#5106
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.
how about has_k_m_args , or has_filtering_args?
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.
has_filtering_args
would be ok, but it is not given that they actually filter anythings - that's why I had the longer name I guess.
I think think this would be a change for the better. I quite dislike the name has_possibly_filtering_args :) |
@@ -150,6 +150,10 @@ def __init__(self, config, testmon_data): | |||
self.f_to_ignore = self.testmon_data.stable_files | |||
if self.config.getoption('tlf'): | |||
self.f_to_ignore -= self.testmon_data.f_last_failed | |||
self.has_possibly_filtering_args = any( | |||
x for x in config._origargs |
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.
how about has_k_m_args , or has_filtering_args?
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.
So let's do this with has_filtering_args. Could you update the PR?
Not anytime soon. I also think that other PRs are more important first. |
fd8d9cb
to
c369e8c
Compare
Thanks, this class of reports inspired me to rewrite testmon, so this is hopefully not relevant any more. |
Ref: #135