-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fixed issue with left bracket in path to test file #17357
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
Conversation
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.
Thanks for the PR. Please create a bug for this issue, and provide a new item.
For the linting issue, please make sure you use |
Hi Karthik, Thank you for your review and feedback! I accepted your changes and added additional check in case function is used outside the proper if. I also created an issue #17461 and added it to commit message, but it's unclear to me if they have link now (currently, I don't see a link between them). |
Co-authored-by: Karthik Nadig <kanadig@microsoft.com>
Hi Karthik, I can't merge this PR - Only those with write access to this repository can merge pull requests. So it's up to you :) |
@ilexei I am waiting for @paulacamargo25 to take a look and merge. You don't have to do anything else for now :) |
Rather than try and parse out the parametrized portion of the nodeid (delimited by square brackets but possibly containing square brackets), use native [pytest item attributes](https://docs.pytest.org/en/6.2.x/reference.html#function) to separate out the decoration. Better solution for microsoft#17357, fixing microsoft#17676.
Rather than try and parse out the parametrized portion of the nodeid (delimited by square brackets but possibly containing square brackets), use native [pytest item attributes](https://docs.pytest.org/en/6.2.x/reference.html#function) to separate out the decoration. Better solution for microsoft#17357, fixing microsoft#17676.
Rather than try and parse out the parametrized portion of the nodeid (delimited by square brackets but possibly containing square brackets), use native [pytest item attributes](https://docs.pytest.org/en/6.2.x/reference.html#function) to separate out the decoration. Better solution for microsoft#17357, fixing microsoft#17676.
* Use pytest data to extract the parametrised decoration Rather than try and parse out the parametrized portion of the nodeid (delimited by square brackets but possibly containing square brackets), use native [pytest item attributes](https://docs.pytest.org/en/6.2.x/reference.html#function) to separate out the decoration. Better solution for #17357, fixing #17676. * Add news entry * Update news/2 Fixes/17676.md Co-authored-by: Karthik Nadig <kanadig@microsoft.com> Co-authored-by: Karthik Nadig <kanadig@microsoft.com>
…ode-python#17881) * Use pytest data to extract the parametrised decoration Rather than try and parse out the parametrized portion of the nodeid (delimited by square brackets but possibly containing square brackets), use native [pytest item attributes](https://docs.pytest.org/en/6.2.x/reference.html#function) to separate out the decoration. Better solution for microsoft/vscode-python#17357, fixing microsoft/vscode-python#17676. * Add news entry * Update news/2 Fixes/17676.md Co-authored-by: Karthik Nadig <kanadig@microsoft.com> Co-authored-by: Karthik Nadig <kanadig@microsoft.com>
Hi!
I bumped into issue when pytest crashes on scanning my folders.
I had a structure like this
.
|-folder1-test_public.py
|-folder2-test_public.py
|-folder2[2]-test_public.py
And in case of folder folder2[2] the name of the test was determined wrong.
I searched the similar issue but found nothing.
Hope this little fix help not only me.