Skip to content

Commit

Permalink
removed unneeded test variable
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sanche committed Aug 15, 2023
1 parent 06824b9 commit 343157b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions tests/asyncio/test_retry_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,8 @@ async def test_retry_target_bad_sleep_generator():
async def test_retry_streaming_target_bad_sleep_generator():
from google.api_core.retry_streaming_async import retry_target_stream

gen = retry_target_stream(None, lambda x: True, [], None)
with pytest.raises(ValueError, match="Sleep generator"):
await gen.__anext__()
await retry_target_stream(None, None, [], None).__anext__()


class TestAsyncRetry:
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/test_retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,10 @@ def test_retry_target_bad_sleep_generator():
def test_retry_streaming_target_bad_sleep_generator():
from google.api_core.retry_streaming import retry_target_stream

gen = retry_target_stream(None, lambda x: True, [], None)
with pytest.raises(
ValueError, match="Sleep generator stopped yielding sleep values"
):
next(gen)
next(retry_target_stream(None, None, [], None))


class TestRetry(object):
Expand Down

0 comments on commit 343157b

Please sign in to comment.