Use local imports when importing from tests (#2464)

This commit is contained in:
Riccardo Magliocchetti
2024-04-29 20:49:08 +02:00
committed by GitHub
parent 2493258af1
commit de7ce0fb22
5 changed files with 10 additions and 19 deletions

View File

@ -13,9 +13,6 @@
# limitations under the License.
import grpc
from tests.protobuf import ( # pylint: disable=no-name-in-module
test_server_pb2_grpc,
)
from opentelemetry import trace
from opentelemetry.instrumentation.grpc import GrpcInstrumentorClient
@ -23,6 +20,7 @@ from opentelemetry.test.test_base import TestBase
from ._client import simple_method
from ._server import create_test_server
from .protobuf import test_server_pb2_grpc
# User defined interceptor. Is used in the tests along with the opentelemetry client interceptor.