From bf51200bc10858552f3cc6989afe0fe51b57a4f2 Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 25 Jan 2017 23:23:50 +1100 Subject: [PATCH] tests/extmod/framebuf1: Fix test for framebuf invalid constructor. --- tests/extmod/framebuf1.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/extmod/framebuf1.py b/tests/extmod/framebuf1.py index 9fed33809d..c204e63aa3 100644 --- a/tests/extmod/framebuf1.py +++ b/tests/extmod/framebuf1.py @@ -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)