Skip to content

python: a bit nicer error on duplicate parametrization #13458

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

Merged
merged 2 commits into from
Jun 2, 2025
Merged

Conversation

bluetech
Copy link
Member

@bluetech bluetech commented Jun 1, 2025

Raising ValueError dumps all of the internal stacktrace to the user, which is not helpful. Raising CollectError is handled specially to just print the message.

It would be nice to show source location or such - maybe another time.

Fix #13457

Raising `ValueError` dumps all of the internal stacktrace to the user,
which is not helpful. Raising `CollectError` is handled specially to
just print the message.

It would be nice to show source location or such - maybe another time.

Fix #13457
@psf-chronographer psf-chronographer bot added the bot:chronographer:provided (automation) changelog entry is part of PR label Jun 1, 2025
Copy link
Member

@RonnyPfannschmidt RonnyPfannschmidt left a comment

Choose a reason for hiding this comment

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

Let's log a issue to annoate the details in generate_tests when possible

Like node oder origin and used marker

@bluetech
Copy link
Member Author

bluetech commented Jun 2, 2025

Let's log a issue to annoate the details in generate_tests when possible

Like node oder origin and used marker

I added a commit which pinpoints the node ID at least for now (also for another parametrization error), as it's easy. Not sure it's worth bothering with something more elaborate.

@bluetech bluetech merged commit 4dcbcc9 into main Jun 2, 2025
31 checks passed
@bluetech bluetech deleted the dup-param-error branch June 2, 2025 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot:chronographer:provided (automation) changelog entry is part of PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplicate parametrization collection errors dumps internal stacktrace
4 participants