Skip to content

Commit

Permalink
Eliminate function-redefined suppression
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrdada committed Apr 19, 2018
1 parent bc947ad commit 86d04c2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
1 change: 0 additions & 1 deletion .pylintrc-tests
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ disable=
too-many-format-args,
too-many-return-statements,
too-many-statements,
function-redefined,
wildcard-import,
line-too-long,
wrong-import-position,
Expand Down
24 changes: 0 additions & 24 deletions src/python/grpcio_tests/tests/testing/_client_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,30 +215,6 @@ def infinite_request_iterator():
return _UNSATISFACTORY_OUTCOME


def run(scenario, channel):
stub = services_pb2_grpc.FirstServiceStub(channel)
try:
if scenario is Scenario.UNARY_UNARY:
return _run_unary_unary(stub)
elif scenario is Scenario.UNARY_STREAM:
return _run_unary_stream(stub)
elif scenario is Scenario.STREAM_UNARY:
return _run_stream_unary(stub)
elif scenario is Scenario.STREAM_STREAM:
return _run_stream_stream(stub)
elif scenario is Scenario.CONCURRENT_STREAM_UNARY:
return _run_concurrent_stream_unary(stub)
elif scenario is Scenario.CONCURRENT_STREAM_STREAM:
return _run_concurrent_stream_stream(stub)
elif scenario is Scenario.CANCEL_UNARY_UNARY:
return _run_cancel_unary_unary(stub)
elif scenario is Scenario.INFINITE_REQUEST_STREAM:
return _run_infinite_request_stream(stub)
except grpc.RpcError as rpc_error:
return Outcome(Outcome.Kind.RPC_ERROR, rpc_error.code(),
rpc_error.details())


_IMPLEMENTATIONS = {
Scenario.UNARY_UNARY: _run_unary_unary,
Scenario.UNARY_STREAM: _run_unary_stream,
Expand Down

0 comments on commit 86d04c2

Please sign in to comment.