mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-13 16:54:45 +03:00
fix variable name
This commit is contained in:
parent
07f6951693
commit
5fd014a106
|
@ -865,14 +865,14 @@ class TestImage:
|
|||
@pytest.mark.parametrize("mode", all_modes)
|
||||
def test_roundtrip_bytes_constructor(self, mode):
|
||||
source_image = hopper(mode)
|
||||
source_bytes = image.tobytes()
|
||||
source_bytes = source_image.tobytes()
|
||||
copy_image = Image.frombytes(mode, source_image.size, source_bytes)
|
||||
assert copy_image.tobytes() == source_bytes
|
||||
|
||||
@pytest.mark.parametrize("mode", all_modes)
|
||||
def test_roundtrip_bytes_method(self, mode):
|
||||
source_image = hopper(mode)
|
||||
source_bytes = image.tobytes()
|
||||
source_bytes = source_image.tobytes()
|
||||
copy_image = Image.new(mode, source_image.size)
|
||||
copy_image.frombytes(source_bytes)
|
||||
assert copy_image.tobytes() == source_bytes
|
||||
|
|
Loading…
Reference in New Issue
Block a user