tests/extmod/framebuf1: Fix test for framebuf invalid constructor.

This commit is contained in:
Damien George 2017-01-25 23:23:50 +11:00
parent 406fb3cb60
commit bf51200bc1

View File

@ -89,11 +89,11 @@ print(buf)
fbuf.text(str(chr(31)), 0, 0)
print(buf)
# test invalid constructor
# test invalid constructor, and stride argument
try:
fbuf = framebuf.FrameBuffer(buf, w, h, 3, framebuf.MVLSB)
fbuf = framebuf.FrameBuffer(buf, w, h, -1, w)
except ValueError:
print("ValueError")
print("ValueError")
# test legacy constructor
fbuf = framebuf.FrameBuffer1(buf, w, h)