Skip to content

Commit af63a74

Browse files
committed
Shorten up test
1 parent dc74a58 commit af63a74

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

qrcode/tests/regression/test_pil_clear.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,8 @@ def test_qrcode_clear_resets_size(tmp_path: Path):
4444
img3 = qr.make_image()
4545
img3.save(test3_path)
4646

47-
# Compare the images. Image 1 and 3 must be binary identical.
47+
# Check that the first and third QR codes are identical.
4848
with test1_path.open("rb") as file1, test3_path.open("rb") as file3:
49-
file1_data = file1.read()
50-
file3_data = file3.read()
51-
52-
# Check that the first and third QR codes are identical
53-
assert file1_data == file3_data, (
49+
assert file1.read() == file3.read(), (
5450
"First and third QR codes should be identical after clearing"
5551
)

0 commit comments

Comments
 (0)