summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/extmod/framebuf1.py6
1 files 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)