Skip to content

Commit 6a44282

Browse files
committed
fix: skip test_client_helpers in non-grpc environments
1 parent 72d6561 commit 6a44282

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

packages/google-api-core/tests/unit/gapic/test_client_helpers.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
from unittest import mock
1818
import pytest
1919

20+
try:
21+
import grpc # noqa: F401
22+
except ImportError:
23+
pytest.skip("No GRPC", allow_module_level=True)
24+
2025
from google.api_core.gapic_v1 import client_helpers
2126
from google.auth.exceptions import MutualTLSChannelError
2227

0 commit comments

Comments
 (0)