Skip to content

Remove return from finally block#60

Merged
nicoddemus merged 2 commits intopytest-dev:mainfrom
nicoddemus:58-finally
Jun 22, 2025
Merged

Remove return from finally block#60
nicoddemus merged 2 commits intopytest-dev:mainfrom
nicoddemus:58-finally

Conversation

@nicoddemus
Copy link
Copy Markdown
Member

This return swallows any exceptions that might happen inside the try/finally block.

While this does seem intentional, there is no reason for set(item.nodeid ...) to not work, given nodeid is a string.

Fix #58

This `return` swallows any exceptions that might happen inside the `try/finally` block.

While this does seem intentional, there is no reason for `set(item.nodeid ...)` to not work, given `nodeid` is a string.

Fix pytest-dev#58
@nicoddemus nicoddemus merged commit 754a8e4 into pytest-dev:main Jun 22, 2025
12 checks passed
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.

return in finally swallows exceptions

1 participant