summaryrefslogtreecommitdiff
path: root/tests/cpydiff/core_arguments.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cpydiff/core_arguments.py')
-rw-r--r--tests/cpydiff/core_arguments.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/cpydiff/core_arguments.py b/tests/cpydiff/core_arguments.py
new file mode 100644
index 000000000..4734a8062
--- /dev/null
+++ b/tests/cpydiff/core_arguments.py
@@ -0,0 +1,10 @@
+"""
+categories: Core
+description: Error messages for methods may display unexpected argument counts
+cause: MicroPython counts "self" as an argument.
+workaround: Interpret error messages with the information above in mind.
+"""
+try:
+ [].append()
+except Exception as e:
+ print(e)