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

[PyTest] Sort by test location, but not parametrization #9353

Merged
merged 1 commit into from
Oct 26, 2021

Conversation

Lunderberg
Copy link
Contributor

A follow-up from #9188. The item.location tuple contains (filename, line_number, test_name), where the test_name includes a string representation of all parameters. This change preserves pytest's sorting of parametrized values within a parametrized test, rather than sorting by strings.

A follow-up from apache#9188.  The
`item.location` tuple contains `(filename, line_number, test_name)`,
where the `test_name` includes a string representation of all
parameters.  This change preserves pytest's sorting of parametrized
values within a parametrized test, rather than sorting by strings.
@masahi masahi merged commit 64b58b1 into apache:main Oct 26, 2021
@Lunderberg Lunderberg deleted the pytest_sorting branch October 26, 2021 23:58
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 7, 2022
A follow-up from apache#9188.  The
`item.location` tuple contains `(filename, line_number, test_name)`,
where the `test_name` includes a string representation of all
parameters.  This change preserves pytest's sorting of parametrized
values within a parametrized test, rather than sorting by strings.
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 13, 2022
A follow-up from apache#9188.  The
`item.location` tuple contains `(filename, line_number, test_name)`,
where the `test_name` includes a string representation of all
parameters.  This change preserves pytest's sorting of parametrized
values within a parametrized test, rather than sorting by strings.
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.

None yet

3 participants