summaryrefslogtreecommitdiff
path: root/tests/extmod/framebuf_subclass.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/extmod/framebuf_subclass.py')
-rw-r--r--tests/extmod/framebuf_subclass.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/extmod/framebuf_subclass.py b/tests/extmod/framebuf_subclass.py
index 6363c224f..b429776bc 100644
--- a/tests/extmod/framebuf_subclass.py
+++ b/tests/extmod/framebuf_subclass.py
@@ -3,9 +3,10 @@
try:
import framebuf
except ImportError:
- print('SKIP')
+ print("SKIP")
raise SystemExit
+
class FB(framebuf.FrameBuffer):
def __init__(self, n):
self.n = n
@@ -14,6 +15,7 @@ class FB(framebuf.FrameBuffer):
def foo(self):
self.hline(0, 2, self.n, 0x0304)
+
fb = FB(n=3)
fb.pixel(0, 0, 0x0102)
fb.foo()