diff options
author | Damien George <damien.p.george@gmail.com> | 2017-01-25 23:23:50 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-01-25 23:23:50 +1100 |
commit | bf51200bc10858552f3cc6989afe0fe51b57a4f2 (patch) | |
tree | 80eae7590795a8df1480471abc3c3ed28cc2383d | |
parent | 406fb3cb6084e5b3c6489a99b30affd35330d3fd (diff) | |
download | micropython-bf51200bc10858552f3cc6989afe0fe51b57a4f2.tar.gz micropython-bf51200bc10858552f3cc6989afe0fe51b57a4f2.zip |
tests/extmod/framebuf1: Fix test for framebuf invalid constructor.
-rw-r--r-- | tests/extmod/framebuf1.py | 6 |
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) |