summaryrefslogtreecommitdiff
path: root/tests/micropython/heapalloc_inst_call.py
diff options
context:
space:
mode:
authorJeff Epler <jeff@adafruit.com>2021-03-15 13:50:49 -0500
committerGitHub <noreply@github.com>2021-03-15 13:50:49 -0500
commit05ed179e11599dd45a76dfb14ecf624d0ff96d68 (patch)
treea046c6d1f117814168150484ed1bf7840d3400d7 /tests/micropython/heapalloc_inst_call.py
parent3cbff45f9aac5ea2855bbc888083d356a91c80fe (diff)
parentf9b4189b4c640823dabb76de8effd2a836da2eb0 (diff)
Merge pull request #4362 from microDev1/code-formatting
Add code formatting and translations check
Diffstat (limited to 'tests/micropython/heapalloc_inst_call.py')
-rw-r--r--tests/micropython/heapalloc_inst_call.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/micropython/heapalloc_inst_call.py b/tests/micropython/heapalloc_inst_call.py
index 3cc497b73..14d8826bf 100644
--- a/tests/micropython/heapalloc_inst_call.py
+++ b/tests/micropython/heapalloc_inst_call.py
@@ -2,22 +2,27 @@
# doesn't require heap allocation.
import micropython
+
class Foo0:
def __call__(self):
print("__call__")
+
class Foo1:
def __call__(self, a):
print("__call__", a)
+
class Foo2:
def __call__(self, a, b):
print("__call__", a, b)
+
class Foo3:
def __call__(self, a, b, c):
print("__call__", a, b, c)
+
f0 = Foo0()
f1 = Foo1()
f2 = Foo2()