Skip to content
Snippets Groups Projects
Commit 5aa2bcfd authored by Nathaniel Manista's avatar Nathaniel Manista
Browse files

Pass an iterator rather than an iterable

This should have been included in dd52a313
but was missed because it falsely passes almost all of the time.
parent fc4b07e1
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@ class NotFoundTest(unittest.TestCase):
def test_future_stream_unary_not_found(self):
rpc_future = self._generic_stub.future_stream_unary(
'grupe', 'mevvod', [b'def'], test_constants.LONG_TIMEOUT)
'grupe', 'mevvod', iter([b'def']), test_constants.LONG_TIMEOUT)
with self.assertRaises(face.LocalError) as exception_assertion_context:
rpc_future.result()
self.assertIs(exception_assertion_context.exception.code,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment