aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio_test/grpc_protoc_plugin/beta_python_plugin_test.py
diff options
context:
space:
mode:
authorGravatar Nathaniel Manista <nathaniel@google.com>2015-09-05 03:55:19 +0000
committerGravatar Nathaniel Manista <nathaniel@google.com>2015-09-05 03:55:19 +0000
commitf65d3c11023cd39b73c8832947889f656f2427a3 (patch)
tree8afa01ed7e6ca1b6e73a9a3eb5aa57b4a17f196c /src/python/grpcio_test/grpc_protoc_plugin/beta_python_plugin_test.py
parent41abb052b8ed180ca14b9ff1427a215b8e4dcd60 (diff)
Beta API clean-ups
(1) Renamed the "beta" module "implementations" because it hasn't been monolithic since "interfaces" was factored out of it a few changes back. (2) Moved ChannelConnectivity from grpc.beta.beta to grpc.beta.interfaces since it is constants that don't depend on the beta implementation. (3) Moved the Server interface definition from grpc.beta.beta to grpc.beta.interfaces since it is an interface. (4) Dropped the "create_" prefix from "create_<...>_channel" functions to better match the other creation functions throughout the codebase.
Diffstat (limited to 'src/python/grpcio_test/grpc_protoc_plugin/beta_python_plugin_test.py')
-rw-r--r--src/python/grpcio_test/grpc_protoc_plugin/beta_python_plugin_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/python/grpcio_test/grpc_protoc_plugin/beta_python_plugin_test.py b/src/python/grpcio_test/grpc_protoc_plugin/beta_python_plugin_test.py
index 4c8c64b06d..259b978de2 100644
--- a/src/python/grpcio_test/grpc_protoc_plugin/beta_python_plugin_test.py
+++ b/src/python/grpcio_test/grpc_protoc_plugin/beta_python_plugin_test.py
@@ -42,7 +42,7 @@ import threading
import time
import unittest
-from grpc.beta import beta
+from grpc.beta import implementations
from grpc.framework.foundation import future
from grpc.framework.interfaces.face import face
from grpc_test.framework.common import test_constants
@@ -170,7 +170,7 @@ def _CreateService(test_pb2):
server = getattr(test_pb2, SERVER_FACTORY_IDENTIFIER)(servicer)
port = server.add_insecure_port('[::]:0')
server.start()
- channel = beta.create_insecure_channel('localhost', port)
+ channel = implementations.insecure_channel('localhost', port)
stub = getattr(test_pb2, STUB_FACTORY_IDENTIFIER)(channel)
yield servicer_methods, stub
server.stop(0)