Skip to content

Use pytest data to extract the parametrised decoration#17881

Merged
karthiknadig merged 3 commits into
microsoft:mainfrom
mjpieters:parametrized_nodeids
Nov 8, 2021
Merged

Use pytest data to extract the parametrised decoration#17881
karthiknadig merged 3 commits into
microsoft:mainfrom
mjpieters:parametrized_nodeids

Conversation

@mjpieters
Copy link
Copy Markdown

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
Copy Markdown

ghost commented Oct 30, 2021

CLA assistant check
All CLA requirements met.

@karrtikr karrtikr requested a review from karthiknadig October 30, 2021 22:11
@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.
@mjpieters mjpieters force-pushed the parametrized_nodeids branch from 08e03fc to 2864693 Compare October 31, 2021 21:40
Comment thread news/2 Fixes/17676.md Outdated
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