Skip to content
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

Use pytest data to extract the parametrised decoration #17881

Merged
merged 3 commits into from
Nov 8, 2021

Conversation

mjpieters
Copy link

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 to separate out the decoration.

Better solution for #17357, fixing #17676.

@ghost
Copy link

ghost commented Oct 30, 2021

CLA assistant check
All CLA requirements met.

@karrtikr karrtikr assigned karthiknadig and unassigned karrtikr Oct 30, 2021
@mjpieters mjpieters force-pushed the parametrized_nodeids branch 2 times, most recently from e3e91f8 to 08e03fc Compare October 31, 2021 21:33
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.
news/2 Fixes/17676.md Outdated Show resolved Hide resolved
Co-authored-by: Karthik Nadig <kanadig@microsoft.com>
@karthiknadig karthiknadig merged commit 251cb30 into microsoft:main Nov 8, 2021
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>
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