We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e183eb4 + 328f4fe commit 7f81d99Copy full SHA for 7f81d99
glance/tests/unit/common/test_utils.py
@@ -221,17 +221,6 @@ def test_cooperative_reader_unbounded_read_on_empty_iterator(self):
221
reader = utils.CooperativeReader([])
222
self.assertEqual(b'', reader.read())
223
224
- def test_cooperative_reader_of_iterator_stop_iteration_err(self):
225
- """Ensure cooperative reader supports iterator backends too"""
226
- reader = utils.CooperativeReader([l * 3 for l in ''])
227
- chunks = []
228
- while True:
229
- chunks.append(reader.read(3))
230
- if chunks[-1] == b'':
231
- break
232
- meat = b''.join(chunks)
233
- self.assertEqual(b'', meat)
234
-
235
def _create_generator(self, chunk_size, max_iterations):
236
chars = b'abc'
237
iteration = 0
0 commit comments