From 5cab83380896fab4c37628667cc2530e66df2db9 Mon Sep 17 00:00:00 2001 From: Lidi Zheng Date: Wed, 1 Apr 2020 15:11:26 -0700 Subject: [PATCH] Make sanity tests happy --- src/python/grpcio/grpc/experimental/aio/_call.py | 2 +- src/python/grpcio_tests/tests_aio/unit/metadata_test.py | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/python/grpcio/grpc/experimental/aio/_call.py b/src/python/grpcio/grpc/experimental/aio/_call.py index 78da009ec01..c038b3a3ffa 100644 --- a/src/python/grpcio/grpc/experimental/aio/_call.py +++ b/src/python/grpcio/grpc/experimental/aio/_call.py @@ -17,7 +17,7 @@ import asyncio from functools import partial import logging import enum -from typing import AsyncIterable, Awaitable, Dict, Optional +from typing import AsyncIterable, Awaitable, Optional import grpc from grpc import _common diff --git a/src/python/grpcio_tests/tests_aio/unit/metadata_test.py b/src/python/grpcio_tests/tests_aio/unit/metadata_test.py index b1a772df7be..6551e4ca084 100644 --- a/src/python/grpcio_tests/tests_aio/unit/metadata_test.py +++ b/src/python/grpcio_tests/tests_aio/unit/metadata_test.py @@ -217,13 +217,6 @@ class TestMetadata(AioTestBase): self.assertEqual(_RESPONSE, await call) self.assertEqual(grpc.StatusCode.OK, await call.code()) - async def test_from_client_to_server_with_iterator(self): - multicallable = self._client.unary_unary(_TEST_CLIENT_TO_SERVER) - call = multicallable( - _REQUEST, metadata=iter(_INITIAL_METADATA_FROM_CLIENT_TO_SERVER)) - self.assertEqual(_RESPONSE, await call) - self.assertEqual(grpc.StatusCode.OK, await call.code()) - @unittest.skipIf(platform.system() == 'Windows', 'https://github.com/grpc/grpc/issues/21943') async def test_invalid_metadata(self):