aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio_tests/tests/unit
diff options
context:
space:
mode:
authorGravatar Ken Payson <kpayson@google.com>2016-09-16 13:43:13 -0700
committerGravatar Ken Payson <kpayson@google.com>2016-10-13 15:11:04 -0700
commit58c0f96f1962652e80d9aba43f260240daf610f0 (patch)
tree9ca8fd39382192dd26dbfc0d87e2e4b0f5503019 /src/python/grpcio_tests/tests/unit
parenta6a6fa4f12c5634d87d8b4e64fa50c3618586a7c (diff)
Allow pointer channel args python
Diffstat (limited to 'src/python/grpcio_tests/tests/unit')
-rw-r--r--src/python/grpcio_tests/tests/unit/_channel_args_test.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/python/grpcio_tests/tests/unit/_channel_args_test.py b/src/python/grpcio_tests/tests/unit/_channel_args_test.py
index 6a636d7993..b46497afd6 100644
--- a/src/python/grpcio_tests/tests/unit/_channel_args_test.py
+++ b/src/python/grpcio_tests/tests/unit/_channel_args_test.py
@@ -33,11 +33,18 @@ import unittest
import grpc
+class TestPointerWrapper(object):
+
+ def __int__(self):
+ return 123456
+
+
TEST_CHANNEL_ARGS = (
('arg1', b'bytes_val'),
('arg2', 'str_val'),
('arg3', 1),
(b'arg4', 'str_val'),
+ ('arg6', TestPointerWrapper()),
)