-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 --ignore flag work with --pyargs #3287
Comments
Hi @rth,
|
Thanks for the confirmation, @nicoddemus ! Providing the full path to
does work even for I'm wondering if this couldn't be solved by just adding support for regexp in As far as I can tell all Line 187 in e980fbb
by if re.match(py.path.local(path), ' '.join(ignore_paths)) (or something based on fnmatch) it could work, I imagine. Would this feature be acceptable for pytest? Am I missing something? To avoid breaking backward compatibility fnmatch might be better, but even then I'm not sure this wouldn't break existing setups... |
Or maybe add another CLI option similar to |
Seems reasonable, and if we use |
I was wondering why this functionality didn't work as expected. I am using 4.6.x (2.7) and 6.2.x (3.x). |
I just discovered the
--pyargs
option and it's very practical. However it does not seem to take into account the--ignore
options.Example,
running,
produces exactly identical output, while I would have expected the
develop.py
not to be tested.Here is another example of this same issue.
Is there a way around it?
The text was updated successfully, but these errors were encountered: