Skip to content

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.

3 participants