Merge "Handle StopIteration for Py3.7 PEP 0479"
This commit is contained in:
commit
e5e1cc439c
|
@ -34,7 +34,7 @@ class SimpleIterator(object):
|
|||
yield chunk
|
||||
chunk = read_chunk()
|
||||
else:
|
||||
raise StopIteration()
|
||||
return
|
||||
|
||||
|
||||
class TestSizeCheckedIter(testtools.TestCase):
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue