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():
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.
I propose to rename
pluggy._CallOutcome.resultto_resultwith pytest 3.0. It seems to be a common mistake to use.resultinstead ofget_result():If there was an exception in the wrapped hook, the
resultattribute will not exist at all, which will cause anAttributeErrorwhich 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_resultas external API.