Skip to content

Commit 4a12e57

Browse files
committed
fix gcs import issues
1 parent c8b3b36 commit 4a12e57

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

tests/integration/synapseclient/models/async/test_storage_location_async.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
"""Integration tests for the synapseclient.models.StorageLocation class."""
22

3+
from __future__ import annotations
4+
5+
import importlib
36
import os
47
import uuid
58
from typing import Callable
69

710
import boto3
811
import pytest
912
from botocore.exceptions import ClientError
10-
from google.cloud import storage as gcs_storage
13+
14+
try:
15+
gcs_storage = importlib.import_module("google.cloud.storage")
16+
except ImportError:
17+
gcs_storage = None
1118

1219
from synapseclient import Synapse
1320
from synapseclient.core import utils as syn_utils

0 commit comments

Comments
 (0)