Skip to content

Commit bf51200

Browse files
committed
tests/extmod/framebuf1: Fix test for framebuf invalid constructor.
1 parent 406fb3c commit bf51200

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/extmod/framebuf1.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@
8989
fbuf.text(str(chr(31)), 0, 0)
9090
print(buf)
9191

92-
# test invalid constructor
92+
# test invalid constructor, and stride argument
9393
try:
94-
fbuf = framebuf.FrameBuffer(buf, w, h, 3, framebuf.MVLSB)
94+
fbuf = framebuf.FrameBuffer(buf, w, h, -1, w)
9595
except ValueError:
96-
print("ValueError")
96+
print("ValueError")
9797

9898
# test legacy constructor
9999
fbuf = framebuf.FrameBuffer1(buf, w, h)

0 commit comments

Comments
 (0)