Eliminate non-iterator-returned suppression

pull/15113/head
Mehrdad Afshari 7 years ago
parent a7926f9a4c
commit a6bf3ccac8
  1. 1
      .pylintrc-tests
  2. 4
      src/python/grpcio_tests/tests/unit/_invocation_defects_test.py

@ -56,7 +56,6 @@ disable=
line-too-long,
wrong-import-position,
wrong-import-order,
non-iterator-returned,
# -- END OF TEST-SPECIFIC SUPPRESSIONS --

@ -165,11 +165,13 @@ class FailAfterFewIterationsCounter(object):
def __next__(self):
if self._current >= self._high:
raise Exception("This is a deliberate failure in a unit test.")
raise test_control.Defect()
else:
self._current += 1
return self._bytestring
next = __next__
def _unary_unary_multi_callable(channel):
return channel.unary_unary(_UNARY_UNARY)

Loading…
Cancel
Save