From 5fd014a1067fde8b7273872e9df31f536cc62205 Mon Sep 17 00:00:00 2001 From: Yay295 Date: Thu, 15 Dec 2022 23:15:38 -0600 Subject: [PATCH] fix variable name --- Tests/test_image.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/test_image.py b/Tests/test_image.py index 69ba81564..aca6ed8f6 100644 --- a/Tests/test_image.py +++ b/Tests/test_image.py @@ -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