Appease pylint

pull/20938/head
Richard Belleville 5 years ago
parent 3f1b5fe2aa
commit 10e7befbf4
  1. 2
      src/python/grpcio_tests/tests/unit/_interceptor_test.py
  2. 2
      src/python/grpcio_tests/tests/unit/thread_pool.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

@ -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)

Loading…
Cancel
Save