test must read data in binary mode

This commit is contained in:
Jeff Epler 2022-08-12 08:34:33 -05:00
parent 06f22cb59c
commit 606c75ab62
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ except:
raise SystemExit raise SystemExit
loc = __file__.rsplit("/", 1)[0] loc = __file__.rsplit("/", 1)[0]
with open(f"{loc}/data/qr.pgm") as f: with open(f"{loc}/data/qr.pgm", "rb") as f:
content = f.read()[-320 * 240 :] content = f.read()[-320 * 240 :]
decoder = qrio.QRDecoder(320, 240) decoder = qrio.QRDecoder(320, 240)