Make Sanity test happy

pull/21232/head
Lidi Zheng 6 years ago
parent 5e5781c961
commit dc2ee66432
  1. 2
      src/python/grpcio/grpc/experimental/BUILD.bazel
  2. 6
      src/python/grpcio/grpc/experimental/aio/_base_call.py
  3. 2
      src/python/grpcio_tests/tests_aio/tests.json

@ -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",

@ -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]:

@ -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",

Loading…
Cancel
Save