test must read data in binary mode
This commit is contained in:
parent
06f22cb59c
commit
606c75ab62
|
@ -5,7 +5,7 @@ except:
|
|||
raise SystemExit
|
||||
|
||||
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 :]
|
||||
|
||||
decoder = qrio.QRDecoder(320, 240)
|
||||
|
|
Loading…
Reference in New Issue