summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/extmod/framebuf1.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/extmod/framebuf1.py b/tests/extmod/framebuf1.py
index b1173d536..f5e92579f 100644
--- a/tests/extmod/framebuf1.py
+++ b/tests/extmod/framebuf1.py
@@ -106,8 +106,9 @@ except ValueError:
print("ValueError")
# test legacy constructor
-fbuf = framebuf.FrameBuffer1(buf, w, h)
-fbuf = framebuf.FrameBuffer1(buf, w, h, w)
+if hasattr(framebuf, "FrameBuffer1"):
+ fbuf = framebuf.FrameBuffer1(buf, w, h)
+ fbuf = framebuf.FrameBuffer1(buf, w, h, w)
print(framebuf.MVLSB == framebuf.MONO_VLSB)
# test get-buffer (returns the original buffer)