Skip to content

Commit 94e51a1

Browse files
committed
chore: remove unused grpc import checks in test files
1 parent 6844bd2 commit 94e51a1

3 files changed

Lines changed: 0 additions & 27 deletions

File tree

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,6 @@
1818

1919
import pytest
2020

21-
# We need to skip this test module if grpc is not installed because importing
22-
# gapic_v1._config_helpers will load gapic_v1/__init__, which unconditionally
23-
# imports gapic_v1.config, which imports grpc.
24-
try:
25-
import grpc # noqa: F401
26-
except ImportError:
27-
pytest.skip("No GRPC", allow_module_level=True)
28-
2921
from google.auth.exceptions import MutualTLSChannelError
3022

3123
from google.api_core.gapic_v1._config_helpers import _read_environment_variables

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,6 @@
1414
# limitations under the License.
1515

1616

17-
import pytest
18-
19-
# We need to skip this test module if grpc is not installed because importing
20-
# gapic_v1._method_helpers will load gapic_v1/__init__, which unconditionally
21-
# imports gapic_v1.config, which imports grpc.
22-
try:
23-
import grpc # noqa: F401
24-
except ImportError:
25-
pytest.skip("No GRPC", allow_module_level=True)
26-
27-
2817
from google.api_core.gapic_v1._method_helpers import _setup_request_id
2918

3019

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@
1717

1818
import pytest
1919

20-
# We need to skip this test module if grpc is not installed because importing
21-
# gapic_v1._routing will load gapic_v1/__init__, which unconditionally
22-
# imports gapic_v1.config, which imports grpc.
23-
try:
24-
import grpc # noqa: F401
25-
except ImportError:
26-
pytest.skip("No GRPC", allow_module_level=True)
27-
2820
from google.auth.exceptions import MutualTLSChannelError
2921

3022
from google.api_core.gapic_v1._routing import (

0 commit comments

Comments
 (0)