aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Mehrdad Afshari <mehrdada@users.noreply.github.com>2018-04-18 18:10:35 -0700
committerGravatar Mehrdad Afshari <mehrdada@users.noreply.github.com>2018-04-19 10:39:38 -0700
commitce8e2fcd16fbfa35365bb69b03118d8ed98a8372 (patch)
treedc9e19e6a7f91e6425f1ec86d8185485a9500abf
parent35c7e8c83318edb4c5a910b54224a322970efce9 (diff)
Eliminate unreachable suppression
-rw-r--r--.pylintrc-tests1
-rw-r--r--src/python/grpcio_tests/tests/testing/_server_application.py2
-rw-r--r--src/python/grpcio_tests/tests/unit/beta/_beta_features_test.py2
3 files changed, 2 insertions, 3 deletions
diff --git a/.pylintrc-tests b/.pylintrc-tests
index 74ac56a994..a4bcb9a69b 100644
--- a/.pylintrc-tests
+++ b/.pylintrc-tests
@@ -54,7 +54,6 @@ disable=
unnecessary-lambda,
wildcard-import,
line-too-long,
- unreachable,
wrong-import-position,
wrong-import-order,
non-iterator-returned,
diff --git a/src/python/grpcio_tests/tests/testing/_server_application.py b/src/python/grpcio_tests/tests/testing/_server_application.py
index 02769ca68d..243c385daf 100644
--- a/src/python/grpcio_tests/tests/testing/_server_application.py
+++ b/src/python/grpcio_tests/tests/testing/_server_application.py
@@ -38,7 +38,7 @@ class FirstServiceServicer(services_pb2_grpc.FirstServiceServicer):
context.set_code(grpc.StatusCode.INVALID_ARGUMENT)
context.set_details('Something is wrong with your request!')
return
- yield services_pb2.Strange()
+ yield services_pb2.Strange() # pylint: disable=unreachable
def StreUn(self, request_iterator, context):
context.send_initial_metadata(((
diff --git a/src/python/grpcio_tests/tests/unit/beta/_beta_features_test.py b/src/python/grpcio_tests/tests/unit/beta/_beta_features_test.py
index 61c03f64ba..b43c647fc9 100644
--- a/src/python/grpcio_tests/tests/unit/beta/_beta_features_test.py
+++ b/src/python/grpcio_tests/tests/unit/beta/_beta_features_test.py
@@ -65,7 +65,7 @@ class _Servicer(object):
self._serviced = True
self._condition.notify_all()
return
- yield
+ yield # pylint: disable=unreachable
def stream_unary(self, request_iterator, context):
for request in request_iterator: