-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Cannot use "pytest test_*" (with wildchar filter) to collect cases on Windows 7 command line #6971
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
Comments
at first glance i strongly suspect this is a shell issue im not aware about how the shells on windows manage it, adding passed wild-card expansion would be a new feature, in that case its a help wanted item |
Pretty much what @RonnyPfannschmidt says - also see e.g. psf/black#1198 and pallets/click#1096. Note that if pytest did that kind of expansion, it should be done on Windows only. |
i believe support on all platforms is possibly sensible, as it would allow wildcard support in |
The problem with expanding wildcards is that it's possible to have a file literally named Shells all have a way to disable wildcard expansion one-by-one for this reason, which I really don't want to duplicate in pytest. |
That isn't possible on Windows - hence my proposal to only do the expansion on Windows. Yes, that means there's no way to use wildcards in |
Good point, we should have a option to control the behaviour with sane defaults for posix vs windows |
@RonnyPfannschmidt @The-Compiler Has this been fixed via #1830? |
The linked issue it's about raises? |
"pytest test_*" cmd lets me selectively run specific tests which are classified by filename prefixes
this works on my mac perfectly
but when i try the trick on a windows 7 machines, pytest cannot collect any cases.
The text was updated successfully, but these errors were encountered: