We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc74a58 commit af63a74Copy full SHA for af63a74
qrcode/tests/regression/test_pil_clear.py
@@ -44,12 +44,8 @@ def test_qrcode_clear_resets_size(tmp_path: Path):
44
img3 = qr.make_image()
45
img3.save(test3_path)
46
47
- # Compare the images. Image 1 and 3 must be binary identical.
+ # Check that the first and third QR codes are identical.
48
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, (
+ assert file1.read() == file3.read(), (
54
"First and third QR codes should be identical after clearing"
55
)
0 commit comments