Skip to content

Commit 606c75a

Browse files
committed
test must read data in binary mode
1 parent 06f22cb commit 606c75a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/extmod/qrio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
raise SystemExit
66

77
loc = __file__.rsplit("/", 1)[0]
8-
with open(f"{loc}/data/qr.pgm") as f:
8+
with open(f"{loc}/data/qr.pgm", "rb") as f:
99
content = f.read()[-320 * 240 :]
1010

1111
decoder = qrio.QRDecoder(320, 240)

0 commit comments

Comments
 (0)