FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fixed issue with left bracket in path to test file by ilexei · Pull Request #17357 · microsoft/vscode-python · GitHub

fixed issue with left bracket in path to test file - #17357

Merged
Paula (paulacamargo25) merged 3 commits into
microsoft:mainfrom
ilexei:main
Sep 23, 2021
Merged

fixed issue with left bracket in path to test file#17357
Paula (paulacamargo25) merged 3 commits into
microsoft:mainfrom
ilexei:main

Conversation

ilexei commented Sep 9, 2021

Copy link
Copy Markdown

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.

Deleted user (ghost) commented Sep 9, 2021
edited by ghost
Loading

Copy link
Copy Markdown


All CLA requirements met.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks for the PR. Please create a bug for this issue, and provide a new item.

Copy link
Copy Markdown
Member

For the linting issue, please make sure you use black formatter to format your changes.

ilexei commented Sep 19, 2021
edited
Loading

Copy link
Copy Markdown
Author

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>

ilexei commented Sep 23, 2021

Copy link
Copy Markdown
Author

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 :)

Copy link
Copy Markdown
Member

ilexei I am waiting for Paula (@paulacamargo25) to take a look and merge. You don't have to do anything else for now :)

Paula (paulacamargo25) merged commit a68f98f into microsoft:main Sep 23, 2021
Martijn Pieters (mjpieters) added a commit to mjpieters/vscode-python that referenced this pull request Oct 30, 2021
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.
Martijn Pieters (mjpieters) added a commit to mjpieters/vscode-python that referenced this pull request Oct 31, 2021
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.
Martijn Pieters (mjpieters) added a commit to mjpieters/vscode-python that referenced this pull request Oct 31, 2021
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.
Karthik Nadig (karthiknadig) added a commit that referenced this pull request Nov 8, 2021
* 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>
Wes McKinney (wesm) pushed a commit to posit-dev/positron that referenced this pull request Mar 28, 2024
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL