Skip to content

Commit

Permalink
🦉 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Nov 9, 2023
1 parent b0faa2d commit 6c44298
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tests/asyncio/test_retry_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,8 +706,10 @@ async def __anext__(self):
return CustomIterable()

if awaitable_wrapped:

async def wrapper():
return iterable_fn()

decorated = retry_(wrapper)
else:
decorated = retry_(iterable_fn)
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/test_retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ def iterable_fn(n):
retryable.close()
with pytest.raises(StopIteration):
next(retryable)

# try closing a new generator
retryable = decorated(10)
retryable.close()
Expand Down Expand Up @@ -752,7 +752,7 @@ def iterable_fn(n):
retryable.throw(TypeError)
with pytest.raises(StopIteration):
next(retryable)

# try throwing with a new generator
retryable = decorated(10)
with pytest.raises(ValueError):
Expand Down

0 comments on commit 6c44298

Please sign in to comment.