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

WIP: skip pytest_ignore_collect with -k/-m #136

Closed

Conversation

blueyed
Copy link
Contributor

@blueyed blueyed commented Apr 14, 2019

Ref: #135

@@ -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
Copy link
Contributor Author

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

Copy link
Owner

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?

Copy link
Contributor Author

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.

@tarpas
Copy link
Owner

tarpas commented May 13, 2019

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
Copy link
Owner

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?

Copy link
Owner

@tarpas tarpas left a 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?

@blueyed
Copy link
Contributor Author

blueyed commented May 17, 2019

Not anytime soon. I also think that other PRs are more important first.
I.e. would be nice to get #106 sorted out, and the other one for the config.

@tarpas tarpas force-pushed the master branch 2 times, most recently from fd8d9cb to c369e8c Compare May 17, 2019 15:38
@tarpas
Copy link
Owner

tarpas commented Dec 6, 2019

Thanks, this class of reports inspired me to rewrite testmon, so this is hopefully not relevant any more.

@tarpas tarpas closed this Dec 6, 2019
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