Remove unneded eumerates
This commit is contained in:
parent
6142a267db
commit
59224fe726
1 changed files with 2 additions and 2 deletions
|
|
@ -178,7 +178,7 @@ def test_clear_buffer():
|
|||
mem_buf.clear()
|
||||
|
||||
# They are now gone
|
||||
for _i, (_image, buffer_id) in enumerate(zip(images, buffer_ids, strict=True)):
|
||||
for _image, buffer_id in zip(images, buffer_ids, strict=True):
|
||||
with pytest.raises(NoImageInMemoryError):
|
||||
mem_buf.get_image(buffer_id)
|
||||
|
||||
|
|
@ -202,7 +202,7 @@ def test_get_metadata_too():
|
|||
zipped = zip(images, metadatas, buffer_ids, strict=True)
|
||||
|
||||
# Check both image and metadata
|
||||
for _i, (image, metadata, buffer_id) in enumerate(zipped):
|
||||
for image, metadata, buffer_id in zipped:
|
||||
returned_image, returned_metadata = mem_buf.get_image(buffer_id)
|
||||
assert image is returned_image
|
||||
assert metadata is returned_metadata
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue