Merge "Handle StopIteration for Py3.7 PEP 0479"

This commit is contained in:
Zuul 2018-10-08 08:36:07 +00:00 committed by Gerrit Code Review
commit e5e1cc439c
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ class SimpleIterator(object):
yield chunk
chunk = read_chunk()
else:
raise StopIteration()
return
class TestSizeCheckedIter(testtools.TestCase):

View File

@ -87,7 +87,7 @@ class TestUtils(test_utils.BaseTestCase):
yield chunk
iteration += 1
if iteration >= max_iterations:
raise StopIteration()
return
def _test_reader_chunked(self, chunk_size, read_size, max_iterations=5):
generator = self._create_generator(chunk_size, max_iterations)