diff options
author | Lidi Zheng <lidiz@google.com> | 2018-12-13 17:05:39 -0800 |
---|---|---|
committer | Lidi Zheng <lidiz@google.com> | 2018-12-13 17:05:39 -0800 |
commit | 0e2f4061f5cc035b61fe7ee22db38529735fb618 (patch) | |
tree | 28a6a5700afc4ed156eecbc5a9e0295db0fa5d6a /src | |
parent | 45b3230ef2b6a4a7e4c7a2348fa65b2c59fe579a (diff) |
Fix typo && remove unecessary except
Diffstat (limited to 'src')
-rw-r--r-- | src/python/grpcio_tests/tests/status/_grpc_status_test.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/python/grpcio_tests/tests/status/_grpc_status_test.py b/src/python/grpcio_tests/tests/status/_grpc_status_test.py index 5969338736..519c372a96 100644 --- a/src/python/grpcio_tests/tests/status/_grpc_status_test.py +++ b/src/python/grpcio_tests/tests/status/_grpc_status_test.py @@ -54,7 +54,7 @@ def _error_details_unary_unary(request, servicer_context): details.Pack( error_details_pb2.DebugInfo( stack_entries=traceback.format_stack(), - detail='Intensionally invoked')) + detail='Intentionally invoked')) rich_status = status_pb2.Status( code=code_pb2.INTERNAL, message=_STATUS_DETAILS, @@ -118,10 +118,8 @@ class StatusTest(unittest.TestCase): self._channel.close() def test_status_ok(self): - try: - _, call = self._channel.unary_unary(_STATUS_OK).with_call(_REQUEST) - except grpc.RpcError as rpc_error: - self.fail(rpc_error) + _, call = self._channel.unary_unary(_STATUS_OK).with_call(_REQUEST) + # Succeed RPC doesn't have status status = rpc_status.from_call(call) self.assertIs(status, None) |