-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
type: backward compatibilitymight present some backward compatibility issues which should be carefully noted in the changelogmight present some backward compatibility issues which should be carefully noted in the changelog
Description
I propose to rename pluggy._CallOutcome.result to _result with pytest 3.0. It seems to be a common mistake to use .result instead of get_result():
- Logging hookwrapper hides exceptions pytest-qt#98
- Use outcome.get_result() in hookwrapper rvprasad/pytest-finer-verdicts#1
If there was an exception in the wrapped hook, the result attribute will not exist at all, which will cause an AttributeError which hides the exception which actually happened.
To avoid that mistake, I think it'd be better to only use the attribute internally and only provide get_result as external API.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type: backward compatibilitymight present some backward compatibility issues which should be carefully noted in the changelogmight present some backward compatibility issues which should be carefully noted in the changelog