diff --git a/src/python/grpcio_tests/tests_aio/unit/channel_test.py b/src/python/grpcio_tests/tests_aio/unit/channel_test.py index 4f95fcfb850..e18b6da6d39 100644 --- a/src/python/grpcio_tests/tests_aio/unit/channel_test.py +++ b/src/python/grpcio_tests/tests_aio/unit/channel_test.py @@ -41,7 +41,7 @@ class TestChannel(AioTestBase): ) await hi(messages_pb2.SimpleRequest()) - self._loop.run_until_complete(coro()) + self.loop.run_until_complete(coro()) def test_unary_unary(self): @@ -59,7 +59,7 @@ class TestChannel(AioTestBase): await channel.close() - self._loop.run_until_complete(coro()) + self.loop.run_until_complete(coro()) def test_unary_call_times_out(self): @@ -91,10 +91,9 @@ class TestChannel(AioTestBase): self.assertIsNotNone( exception_context.exception.trailing_metadata()) - self._loop.run_until_complete(coro()) + self.loop.run_until_complete(coro()) if __name__ == '__main__': - aio.init_grpc_aio() logging.basicConfig() unittest.main(verbosity=2) diff --git a/src/python/grpcio_tests/tests_aio/unit/init_test.py b/src/python/grpcio_tests/tests_aio/unit/init_test.py index b2a07633028..297f178ee44 100644 --- a/src/python/grpcio_tests/tests_aio/unit/init_test.py +++ b/src/python/grpcio_tests/tests_aio/unit/init_test.py @@ -75,6 +75,5 @@ class TestInsecureChannel(AioTestBase): if __name__ == '__main__': - aio.init_grpc_aio() logging.basicConfig() unittest.main(verbosity=2) diff --git a/src/python/grpcio_tests/tests_aio/unit/server_test.py b/src/python/grpcio_tests/tests_aio/unit/server_test.py index ba1c53472e3..15f4ff182d6 100644 --- a/src/python/grpcio_tests/tests_aio/unit/server_test.py +++ b/src/python/grpcio_tests/tests_aio/unit/server_test.py @@ -57,6 +57,5 @@ class TestServer(AioTestBase): if __name__ == '__main__': - aio.init_grpc_aio() logging.basicConfig() unittest.main(verbosity=2)