Skip to content

Commit

Permalink
move error message to try block
Browse files Browse the repository at this point in the history
  • Loading branch information
ohmayr committed Sep 30, 2024
1 parent d46be90 commit bf76338
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/asyncio/test_rest_streaming_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,9 @@

try:
from google.auth.aio.transport import Response

AUTH_AIO_INSTALLED = True
except ImportError:
AUTH_AIO_INSTALLED = False

if not AUTH_AIO_INSTALLED: # pragma: NO COVER
pytest.skip(
"google-api-core[async_rest] is required to use asynchronous rest streaming.",
"google-api-core[async_rest] is required to test asynchronous rest streaming.",
allow_module_level=True,
)

Expand Down

0 comments on commit bf76338

Please sign in to comment.