diff options
| author | Jim Mussared <jim.mussared@gmail.com> | 2023-10-04 22:42:12 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-10-16 12:18:43 +1100 |
| commit | 8eb7721b4aa838608d6e3b28b96992e3d2db42b4 (patch) | |
| tree | 02a95ddc7d6d8ba056e13738c30eebae5860f730 /tests/extmod/framebuf1.py | |
| parent | 03a9fa227d323da7b239a1ef3fa84b0ef45a1621 (diff) | |
extmod/modframebuf: Remove FrameBuffer1 from natmod build.
This work was funded through GitHub Sponsors.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'tests/extmod/framebuf1.py')
| -rw-r--r-- | tests/extmod/framebuf1.py | 5 |
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) |
