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
Not recognizing paths with left square bracket #10329
Comments
Have you tried putting the second command in " " |
I tried now and updated the question |
@KingMichaelPark |
I think you should rename your directory 😉 |
this is clearly not a sufficient solution. what about projects which use brackets in hundreds, thousands of directories?
@nicoddemus, could you share your opinion please? |
Brackets are not supported as part of python module names, so unless extra contex is provided i consider it a no go |
according to the docs:
this paragraph implies that pytest also supports test directories, not just test modules. regardless of that, shouldn't the code be able to identify and warn about these "illegal" directory names? |
Some type of warning seems sensible As far as I can tell in the last 15 years this is the first time that brackets in folder names came up as a request |
Yeah I have never seen them, what's the use case for hundreds of thousands of directories with brackets in them (completely out of curiosity not a criticism) |
that's probably because the PR that broke them was pushed this february, and not everyone is using the latest pytest version. |
i honestly don't know, i just know it's possible 😅 |
Oh yay, @asottile seems like a opportunity for pain was missed, seems like a preliminary look at the Filesystem is necessary after all 😭 |
I'd rather just say "play stupid games win stupid prizes" -- putting square brackets in directory names imo clearly falls into that category |
pip list
from the virtual environment you are usingpytest
skips everything after a left square bracket if provided with a path to a folderCheck out the provided path in the second block and the path
pytest
testsThe text was updated successfully, but these errors were encountered: