We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc1d67d commit 9c7246fCopy full SHA for 9c7246f
pluggy/callers.py
@@ -96,11 +96,10 @@ def execute(self):
96
except BaseException:
97
excinfo = sys.exc_info()
98
finally:
99
- outcome = _Result(results, excinfo)
100
if firstresult: # first result hooks return a single value
101
- results = outcome.get_result()
102
- result = results[0] if results else None
103
- outcome.force_result(result)
+ outcome = _Result(results[0] if results else None, excinfo)
+ else:
+ outcome = _Result(results, excinfo)
104
105
# run all wrapper post-yield blocks
106
for gen in reversed(teardowns):
0 commit comments