aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio/tests/unit/beta/test_utilities.py
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2016-06-07 21:21:27 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2016-06-07 21:21:27 -0700
commit533add5a8733a15f36bc03546dcab4312fd4365a (patch)
tree0b112923b795436944e01920829da106ceb953a1 /src/python/grpcio/tests/unit/beta/test_utilities.py
parent8ba42bec907e3e9cebd2621127caac22aed30a0d (diff)
parentd30d4e279c4a63effaa6e912fc00bd4ad96054c7 (diff)
Merge branch 'master' of github.com:grpc/grpc into compression_md_level_bis
Diffstat (limited to 'src/python/grpcio/tests/unit/beta/test_utilities.py')
-rw-r--r--src/python/grpcio/tests/unit/beta/test_utilities.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/python/grpcio/tests/unit/beta/test_utilities.py b/src/python/grpcio/tests/unit/beta/test_utilities.py
index 0313e06a93..66b5f72897 100644
--- a/src/python/grpcio/tests/unit/beta/test_utilities.py
+++ b/src/python/grpcio/tests/unit/beta/test_utilities.py
@@ -29,7 +29,7 @@
"""Test-appropriate entry points into the gRPC Python Beta API."""
-from grpc._adapter import _intermediary_low
+import grpc
from grpc.beta import implementations
@@ -48,9 +48,8 @@ def not_really_secure_channel(
An implementations.Channel to the remote host through which RPCs may be
conducted.
"""
- hostport = '%s:%d' % (host, port)
- intermediary_low_channel = _intermediary_low.Channel(
- hostport, channel_credentials._low_credentials,
- server_host_override=server_host_override)
- return implementations.Channel(
- intermediary_low_channel._internal, intermediary_low_channel)
+ target = '%s:%d' % (host, port)
+ channel = grpc.secure_channel(
+ target, ((b'grpc.ssl_target_name_override', server_host_override,),),
+ channel_credentials._credentials)
+ return implementations.Channel(channel)