Skip to content

Commit 7f81d99

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Remove useless test for the CooperativeReader class"
2 parents e183eb4 + 328f4fe commit 7f81d99

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

glance/tests/unit/common/test_utils.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -221,17 +221,6 @@ def test_cooperative_reader_unbounded_read_on_empty_iterator(self):
221221
reader = utils.CooperativeReader([])
222222
self.assertEqual(b'', reader.read())
223223

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-
235224
def _create_generator(self, chunk_size, max_iterations):
236225
chars = b'abc'
237226
iteration = 0

0 commit comments

Comments
 (0)