diff options
author | Lidi Zheng <lidiz@google.com> | 2018-11-27 12:11:09 -0800 |
---|---|---|
committer | Lidi Zheng <lidiz@google.com> | 2018-11-27 12:11:09 -0800 |
commit | 3adca9ff93cc5241c9fc1a7f45315d97daf8e52a (patch) | |
tree | 55ef6044febabdc6373c849d091b584a63a257e0 /src/python/grpcio_tests | |
parent | a93b6012cc1ae0259118ba5bb4eff4c8634bd18c (diff) |
Surface exceptions from Cython to Python as much as possible
Diffstat (limited to 'src/python/grpcio_tests')
-rw-r--r-- | src/python/grpcio_tests/tests/unit/_invalid_metadata_test.py | 3 |
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() |