1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 01:03:24 +00:00

Merge pull request #811 from kevin1024/graingert-patch-1

return values from generator decorator
This commit is contained in:
Thomas Grainger
2024-01-24 13:22:32 +00:00
committed by GitHub
2 changed files with 17 additions and 1 deletions

View File

@@ -125,7 +125,7 @@ class CassetteContextDecorator:
duration of the generator.
"""
with self as cassette:
yield from fn(cassette)
return (yield from fn(cassette))
def _handle_function(self, fn):
with self as cassette: