aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio_tests
diff options
context:
space:
mode:
authorGravatar Lidi Zheng <scallopsky@gmail.com>2018-12-03 16:42:13 -0800
committerGravatar GitHub <noreply@github.com>2018-12-03 16:42:13 -0800
commitc339ba32298a00436ba98800d513dcf4d0944d11 (patch)
treef5ac68c2117aad356ee284e6920063d790b85d64 /src/python/grpcio_tests
parentf8696b5136108fd2d46e553fdd550e1be6ba2677 (diff)
parent3adca9ff93cc5241c9fc1a7f45315d97daf8e52a (diff)
Merge pull request #16971 from lidizheng/surface-exceptions
Surface exceptions from Cython to Python as much as possible Fixed #16643
Diffstat (limited to 'src/python/grpcio_tests')
-rw-r--r--src/python/grpcio_tests/tests/unit/_invalid_metadata_test.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/python/grpcio_tests/tests/unit/_invalid_metadata_test.py b/src/python/grpcio_tests/tests/unit/_invalid_metadata_test.py
index 9771764635..0ff49490d5 100644
--- a/src/python/grpcio_tests/tests/unit/_invalid_metadata_test.py
+++ b/src/python/grpcio_tests/tests/unit/_invalid_metadata_test.py
@@ -130,6 +130,9 @@ class InvalidMetadataTest(unittest.TestCase):
self._stream_stream(request_iterator, metadata=metadata)
self.assertIn(expected_error_details, str(exception_context.exception))
+ def testInvalidMetadata(self):
+ self.assertRaises(TypeError, self._unary_unary, b'', metadata=42)
+
if __name__ == '__main__':
logging.basicConfig()