diff options
author | 2018-04-18 20:58:56 -0700 | |
---|---|---|
committer | 2018-04-19 10:39:38 -0700 | |
commit | a6bf3ccac8e9d4f554d7e1093b93c30ca2255405 (patch) | |
tree | 24774a903ec4a5b4f9c1e3b999e9b462df4cc86e /src/python/grpcio_tests/tests | |
parent | a7926f9a4cb9ed635a64be0c37d4b9089819d445 (diff) |
Eliminate non-iterator-returned suppression
Diffstat (limited to 'src/python/grpcio_tests/tests')
-rw-r--r-- | src/python/grpcio_tests/tests/unit/_invocation_defects_test.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/python/grpcio_tests/tests/unit/_invocation_defects_test.py b/src/python/grpcio_tests/tests/unit/_invocation_defects_test.py index e40cca8b24..93a5fdf9ff 100644 --- a/src/python/grpcio_tests/tests/unit/_invocation_defects_test.py +++ b/src/python/grpcio_tests/tests/unit/_invocation_defects_test.py @@ -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) |