aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.pylintrc-tests1
-rw-r--r--src/python/grpcio_tests/tests/unit/_compression_test.py4
2 files changed, 2 insertions, 3 deletions
diff --git a/.pylintrc-tests b/.pylintrc-tests
index 2bcfb9e1ed..e80d85eaf7 100644
--- a/.pylintrc-tests
+++ b/.pylintrc-tests
@@ -50,7 +50,6 @@ disable=
too-many-return-statements,
too-many-statements,
function-redefined,
- unnecessary-lambda,
wildcard-import,
line-too-long,
wrong-import-position,
diff --git a/src/python/grpcio_tests/tests/unit/_compression_test.py b/src/python/grpcio_tests/tests/unit/_compression_test.py
index 7550cd39ba..0b11f03adf 100644
--- a/src/python/grpcio_tests/tests/unit/_compression_test.py
+++ b/src/python/grpcio_tests/tests/unit/_compression_test.py
@@ -52,9 +52,9 @@ class _MethodHandler(grpc.RpcMethodHandler):
self.stream_unary = None
self.stream_stream = None
if self.request_streaming and self.response_streaming:
- self.stream_stream = lambda x, y: handle_stream(x, y)
+ self.stream_stream = handle_stream
elif not self.request_streaming and not self.response_streaming:
- self.unary_unary = lambda x, y: handle_unary(x, y)
+ self.unary_unary = handle_unary
class _GenericHandler(grpc.GenericRpcHandler):