aboutsummaryrefslogtreecommitdiff
path: root/tests/asyncio/gapic/test_method_async.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/asyncio/gapic/test_method_async.py')
-rw-r--r--tests/asyncio/gapic/test_method_async.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/asyncio/gapic/test_method_async.py b/tests/asyncio/gapic/test_method_async.py
index e24fe44..1410747 100644
--- a/tests/asyncio/gapic/test_method_async.py
+++ b/tests/asyncio/gapic/test_method_async.py
@@ -14,10 +14,14 @@
import datetime
-from grpc import aio
import mock
import pytest
+try:
+ from grpc import aio
+except ImportError:
+ pytest.skip("No GRPC", allow_module_level=True)
+
from google.api_core import exceptions
from google.api_core import gapic_v1
from google.api_core import grpc_helpers_async