From 10e7befbf49fcc7efc226857ef6f41de536c2c1d Mon Sep 17 00:00:00 2001 From: Richard Belleville Date: Wed, 6 Nov 2019 11:51:17 -0800 Subject: [PATCH] Appease pylint --- src/python/grpcio_tests/tests/unit/_interceptor_test.py | 2 +- src/python/grpcio_tests/tests/unit/thread_pool.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python/grpcio_tests/tests/unit/_interceptor_test.py b/src/python/grpcio_tests/tests/unit/_interceptor_test.py index fcc2e1c2b69..45a9fa30833 100644 --- a/src/python/grpcio_tests/tests/unit/_interceptor_test.py +++ b/src/python/grpcio_tests/tests/unit/_interceptor_test.py @@ -563,7 +563,7 @@ class InterceptorTest(unittest.TestCase): # NOTE: The single-threaded unary-stream path does not support the # grpc.Future interface, so this test does not apply. - @unittest.skipIf(os.getenv("GRPC_SINGLE_THREADED_UNARY_STREAM")) + @unittest.skipIf(os.getenv("GRPC_SINGLE_THREADED_UNARY_STREAM"), "Not supported.") def testInterceptedUnaryRequestStreamResponseWithError(self): request = _EXCEPTION_REQUEST diff --git a/src/python/grpcio_tests/tests/unit/thread_pool.py b/src/python/grpcio_tests/tests/unit/thread_pool.py index bc0f0e523bc..094e203cd95 100644 --- a/src/python/grpcio_tests/tests/unit/thread_pool.py +++ b/src/python/grpcio_tests/tests/unit/thread_pool.py @@ -24,7 +24,7 @@ class RecordingThreadPool(futures.ThreadPoolExecutor): self._lock = threading.Lock() self._was_used = False - def submit(self, fn, *args, **kwargs): + def submit(self, fn, *args, **kwargs): # pylint: disable=arguments-differ with self._lock: self._was_used = True self._tp_executor.submit(fn, *args, **kwargs)