Merge pull request #20077 from nkashy1/python-grpc-testing-abort-fix

Implemented _abort method on ServicerContext
pull/20059/head
Lidi Zheng 6 years ago committed by GitHub
commit c9593617a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/python/grpcio_testing/grpc_testing/_server/_servicer_context.py

@ -74,7 +74,8 @@ class ServicerContext(grpc.ServicerContext):
_common.fuss_with_metadata(trailing_metadata))
def abort(self, code, details):
raise NotImplementedError()
with self._rpc._condition:
self._rpc._abort(code, details)
def abort_with_status(self, status):
raise NotImplementedError()

Loading…
Cancel
Save