From dc2ee6643234a6457558db84bf633536ec2c62eb Mon Sep 17 00:00:00 2001 From: Lidi Zheng Date: Mon, 2 Dec 2019 16:31:10 -0800 Subject: [PATCH] Make Sanity test happy --- src/python/grpcio/grpc/experimental/BUILD.bazel | 2 +- src/python/grpcio/grpc/experimental/aio/_base_call.py | 6 ++++-- src/python/grpcio_tests/tests_aio/benchmark/BUILD.bazel | 8 ++++---- src/python/grpcio_tests/tests_aio/tests.json | 2 +- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/python/grpcio/grpc/experimental/BUILD.bazel b/src/python/grpcio/grpc/experimental/BUILD.bazel index ad54eda480e..46e7bf29ab6 100644 --- a/src/python/grpcio/grpc/experimental/BUILD.bazel +++ b/src/python/grpcio/grpc/experimental/BUILD.bazel @@ -4,11 +4,11 @@ py_library( name = "aio", srcs = [ "aio/__init__.py", + "aio/_base_call.py", "aio/_call.py", "aio/_channel.py", "aio/_server.py", "aio/_typing.py", - "aio/_base_call.py", ], deps = [ "//src/python/grpcio/grpc/_cython:cygrpc", diff --git a/src/python/grpcio/grpc/experimental/aio/_base_call.py b/src/python/grpcio/grpc/experimental/aio/_base_call.py index 95692a0718d..87c3ec99399 100644 --- a/src/python/grpcio/grpc/experimental/aio/_base_call.py +++ b/src/python/grpcio/grpc/experimental/aio/_base_call.py @@ -92,7 +92,8 @@ class Call(grpc.RpcContext, metaclass=ABCMeta): """ -class UnaryUnaryCall(Generic[RequestType, ResponseType], Call, metaclass=ABCMeta): +class UnaryUnaryCall( + Generic[RequestType, ResponseType], Call, metaclass=ABCMeta): """The abstract base class of an unary-unary RPC on the client-side.""" @abstractmethod @@ -104,7 +105,8 @@ class UnaryUnaryCall(Generic[RequestType, ResponseType], Call, metaclass=ABCMeta """ -class UnaryStreamCall(Generic[RequestType, ResponseType], Call, metaclass=ABCMeta): +class UnaryStreamCall( + Generic[RequestType, ResponseType], Call, metaclass=ABCMeta): @abstractmethod def __aiter__(self) -> AsyncIterable[ResponseType]: diff --git a/src/python/grpcio_tests/tests_aio/benchmark/BUILD.bazel b/src/python/grpcio_tests/tests_aio/benchmark/BUILD.bazel index a3c84ec033a..c0947b9ee08 100644 --- a/src/python/grpcio_tests/tests_aio/benchmark/BUILD.bazel +++ b/src/python/grpcio_tests/tests_aio/benchmark/BUILD.bazel @@ -24,9 +24,9 @@ py_binary( deps = [ "//external:six", "//src/proto/grpc/testing:benchmark_service_py_pb2", - "//src/proto/grpc/testing:benchmark_service_py_pb2_grpc", - "//src/proto/grpc/testing:py_messages_proto", - "//src/python/grpcio/grpc:grpcio", - "//src/python/grpcio_tests/tests/unit/framework/common", + "//src/proto/grpc/testing:benchmark_service_py_pb2_grpc", + "//src/proto/grpc/testing:py_messages_proto", + "//src/python/grpcio/grpc:grpcio", + "//src/python/grpcio_tests/tests/unit/framework/common", ], ) diff --git a/src/python/grpcio_tests/tests_aio/tests.json b/src/python/grpcio_tests/tests_aio/tests.json index 8d51c9aaf8d..39b4d93de43 100644 --- a/src/python/grpcio_tests/tests_aio/tests.json +++ b/src/python/grpcio_tests/tests_aio/tests.json @@ -1,6 +1,6 @@ [ "_sanity._sanity_test.AioSanityTest", - "unit.call_test.TestAioRpcError", + "unit.aio_rpc_error_test.TestAioRpcError", "unit.call_test.TestCall", "unit.channel_test.TestChannel", "unit.init_test.TestInsecureChannel",